Create a parameter array
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
You can create a ParamArray using the following
constructor:
Syntax
|
- numParams
-
Specifies the total number of parameters (including all
INPUT,INPUT-OUTPUT, andOUTPUTparameters).
You can add each parameter to the ParamArray using
a set of methods that add a parameter based on the data type of
the parameter or a single generic add parameter method. You must
identify the parameter position as well as the mode of the parameter.
For temp-tables and ProDataSets, you must identify the meta data.
You must also pass in an initial value for input and input-output
parameters.
If you want to reuse the ParamArray for another call:
- The number of parameters for the next call must match the number
of parameters in the
ParamArrayobject - You must clear any current values in the
ParamArrayusing theClear( )method, as shown:
|