Obtaining parameter values
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
As explained earlier, the values returned for OUTPUT or INPUT-OUTPUT parameters
on an asynchronous remote procedure are not returned to the RUN statement
as for a synchronous remote procedure. Instead, they are returned
in the corresponding INPUT parameters of the specified
event procedure.
Note that INPUT parameters in an event procedure
observe the same rules of definition and scoping as any internal
procedure, as shown:
|
Thus, in this example, the ttOrder temp-table
(defined in the outer block) receives its content directly from the ttOrder
INPUT parameter of the GetOrderRecords
event procedure. However, you must explicitly assign the iCount variable (defined in the outer block) to the piOrderCount parameter in order to make the parameter value
available to the outer block. (That is, if you define the INPUT parameter as iCount instead of
piOrderCount, ABL does not automatically make the
parameter value available as iCount in the outer block.
Only the TABLE parameter is scoped to the outer block
and thus receives its value from the parameter.)
Note also that the event procedure checks for and handles any unhandled conditions generated from the execution of order.p using the server session error-handling mechanisms.