Create a parameter array
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
You must place all parameters for a procedure (external,
persistent, and internal) or user-defined function into a com.progress.open4gl.javaproxy.ParamArray object
before running the procedure or user-defined function.
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 follows:// Create the ParamArray ParamArray parms = new ParamArray(1); ...// Clear for reuse parms.clear();