Assigns data from a calling program to private variables or arrays.

PARAMETERS Parameter1 [ AS type [ OF ClassLib ] ] 
   [, Parameter2 [ AS type [ OF ClassLib ] ] ]


PARAMETERS ParameterList

Specifies one or more variable or array names to assign data to. Use commas to separate multiple parameters in ParameterList. Generally, you can pass a maximum of 26 parameters; however, in some circumstances, you can pass 27 parameters.


The PARAMETERS statement must specify at least as many parameters as used by the call to the program, procedure, or function containing the PARAMETERS statement. If more variables or arrays are listed in the PARAMETERS statement than are passed by the calling program, the remaining variables or arrays in the PARAMETERS statement are initialized to False (.F.).

[ AS type [ OF ClassLib] ]

Specifies the data type of the variable or array and the class library containing the type description of type on which this variable or array is based.

You can use the AS clause to implement strong typing. IntelliSense functionality is available for object and variable references only when they are strongly typed. For more information, see How to: Implement Strong Typing for Class, Object, and Variable Code.

Expand imageRemarks

Expand imageExample

Expand imageSee Also

© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic