Table of Contents

TUserDefinedFunction.CheckParameters Method

Checks that the parameter array has the expected number of arguments, and that no one is an Error. If any argument is an error it is returned in ResultError, since the default in Excel is to stop processing arguments in a function when one is an error.

Syntax

Namespace: FlexCel.Core

public static Boolean CheckParameters(Object[] parameters, Int32 expectedCount, out TFlxFormulaErrorValue ResultError)

Parameters

<-> Parameter Type Description
parameters Object[] Array of parameters to check.
expectedCount Int32 Number of parameters expected. If this number is variable, specify -1 here.
out ResultError TFlxFormulaError​Value Returns the error in the parameters. This parameter is only valid if this function returns false.

Returns

True if all parameters are correct, false otherwise.

See also