Access user-defined function return values
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Syntax
You can access the return value after running
any user-defined function using the ReturnValue property on
the Progress.Open4GL.Proxy.ParamArray object. This
is the syntax:
|
You need to cast the return Object to
the correct return type for the function. For example:
|
The subclass of System.Object that
is returned depends on how you define the return type for a given
function. For more information, see Define the return type for a user-defined function.
When the return
value is an array, the Progress.Open4GL.Proxy.ParamArray.IsReturnArray property
will be TRUE. Since the ReturnValue property
returns an object, you can cast it to an array.
|
Note: User-defined functions returning
LONGCHAR or MEMPTR values
cannot be run across the Open Client interface.