TABLE-HANDLE form with BIND
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
To pass a TABLE-HANDLE by binding, you must specify the
BIND keyword in both the calling and the called routines to tell
the AVM to use the same temp-table instance for both routines. If the temp-table that
will be used as a pointer is static, use the REFERENCE-ONLY keyword
when you define the temp-table. Alternately, if the temp-table that will be used as a
pointer is dynamic, set the TABLE-HANDLE parameter to
UNKNOWN.
|
|
REFERENCE-ONLY if it is static:
|
For example, if you are using the called routine’s temp-table data, you define the
calling routine’s static temp-table as REFERENCE-ONLY. If you are using
the calling routine’s temp-table data, you define the called routine’s static temp-table
as REFERENCE-ONLY.
Alternately, if the unused temp-table is dynamic, you should set the
TABLE-HANDLE parameter to UNKNOWN.