VARLIST
ANSI
The VARLIST data definition allows referencing of a list of variables by a single label in instructions supporting variable lists. It uses one of the following formats:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where:
label
Optional. A Data Definition Label.
dlist
Required. A list of previously defined variables. These variables may be of DIM, INIT, FORM, or INTEGER types.
^
Optional. Denotes the item as being a POINTER.
variable
Required. The name of a previously defined variable of the same type.
Flags Affected: NONE
Note the following:
All variables referenced must have been defined prior to the VARLIST.
VARLIST work with any background or I/O instruction (including screen and file I/O) that supports variable lists.
The VARLIST Data Definition Label associated with list is all that needs referencing within the instruction. Each variable within list is processed individually as if it were listed within the instruction.
The ^ denotes a Pointer Variable.
A pointer of this type can be with any instruction that supports variable lists.
See Also: Example Code, LIST, RECORD, Data Definitions
![]() |