Condividi tramite


Variable Parameters

You can pass a variable number of parameters to a UDF. Use the PARAMETERS( ) function to determine the number of parameters passed to the UDF.

You can pass fewer parameters to a UDF than the number of parameters listed in the PARAMETERS or LPARAMETERS statement. If you pass fewer parameters to the UDF than the number listed, the remaining parameters are initialized to false (.F.). If you pass more parameters to the UDF than the number listed, Visual FoxPro generates a "Wrong number of parameters" error message.

See Also

PARAMETERS( ) | Passing Parameters by Reference | Passing Parameters by Value | Parameter Passing by Value or by Reference | Passing Parameters to a Form | User-Defined Functions | Data Manipulation