Pass OUTPUT parameters
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Passing an OUTPUT parameter requires
several steps to provide a parameter as output from an application service
procedure or user-defined function, then to get the value returned
by the parameter.
To pass an OUTPUT 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).
Passing an OUTPUT parameter using the .NET OpenAPI
The following example passes an OUTPUT integer
parameter that does not support the Unknown value (?).
|