Syntax
-
buffer
- A handle to a buffer, or a CHARACTER expression that evaluates to the
name of a DEFINED buffer (you cannot specify the default buffer), that the AVM
searches for at run time.
Note: The maximum number of buffers for a
query or ProDataSet is 200.
Note: Searching for a
buffer using a handle is more efficient than a character expression. The AVM resolves
a character expression at run time by searching in the current routine for a static
buffer with that name. If not found, the AVM searches the enclosing main procedure. If
still not found, the AVM searches up through the calling programs of the current
routine, and their main procedures. Since a handle uniquely identifies the buffer, no
such search is required.
The following is an example when the parameter is a handle to a buffer:
my-query-handle:ADD-BUFFER(BUFFER Customer:HANDLE).
|
The following is an example when the parameter is a CHARACTER
expression:
DEFINE BUFFER bCustomer FOR Customer.
my-query-handle:ADD-BUFFER("bCustomer").
|