Skip to main content

Type.FunctionRequiredParameters

Returns a number indicating the minimum number of parameters required to invoke the type of function.

Syntax

Type.FunctionRequiredParameters(
type as type
) as number

Remarks

Returns a number indicating the minimum number of parameters required to invoke the input type of function.

Examples

Example #1

Find the number of required parameters to the function <code>(x as number, optional y as text)</code>.

Type.FunctionRequiredParameters(type function (x as number, optional y as text) as any)

Result:

1

Category

Type