Pass INTPUT-OUTPUT parameters
- Last Updated: October 5, 2022
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Passing an INPUT-OUTPUT parameter
requires several steps to provide a value as input to an application service
procedure or user-defined function, then to return a value as output using
the same parameter.
To pass an INPUT parameter:
- Create and initialize a variable for the parameter of the correct .NET data type (see Create variables for parameters).
-
Add the parameter to a
ParamArrayobject (see Set up a parameter array). - Run the procedure or user-defined function (see Run procedures and user-defined functions).
-
Get the output value from the
ParamArray(see Get OUTPUT parameter values). You might also want to reset the variable.
Passing an INPUT-OUTPUT parameter using the .NET OpenAPI
The following example passes an INPUT-OUTPUT integer
parameter that does not support the Unknown value (?).
|