Get OUTPUT parameter values
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Syntax
After running a procedure or user-defined function, you
can access the OUTPUT parameters using the following ParamArray method:
|
- paramNum
- Specifies the 0-based position of the parameter.
The
output value is always returned as a System.Object.
If the Object returned cannot be null,
you need to cast the Object to the output parameter
data type and assign it to the output variable you have created
to hold the cast value. If the Object returned
can be null, you need to assign it to the Value property
of a holder object, then test for null before obtaining
the appropriate data type value as output.
Getting output parameters using the .NET OpenAPI
The following example shows getting an output integer
parameter (or the output side of an input-output parameter) that
might be set to the Unknown value (?) in ABL.
|