PARAMETERS( ) Function

Example   See Also

Returns the number of parameters passed to the most recently called program, procedure, or user-defined function.

Syntax

PARAMETERS( )

Returns

Numeric

Remarks

PARAMETERS( ) is useful for determining how many parameters are passed to a program, procedure, or user-defined function.

Note   The value returned by PARAMETERS( ) is reset every time a program, procedure, or user-defined function is called or when ON KEY LABEL is executed. Unlike PARAMETERS( ), the PCOUNT( ) function does not get reset, so PCOUNT( ) may be preferable in most programming situations.