Get OUTPUT parameter values
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
After running a procedure or user-defined function you
can access the OUTPUT parameters using the following ParamArray method:
Syntax
|
- paramNum
- Specifies the 0-based position of the parameter.
The output value is always returned as an Object. You
need to cast the Object and assign it to the output variable
you have created. If the value returned can be the Unknown value
(?) (null in Java), for intrinsic types, you
must use the Object type that corresponds to the intrinsic
type to handle the return of the actual value.
This example gets an output integer parameter that might be set
to the Unknown value (?) by ABL.
Example: Getting an OUTPUT parameter using the Java OpenAPI
|