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:

 

(1)

[label]

VARLIST

{dlist}

(2)

[label]

VARLIST

^

(3)

[label]

VARLIST

^,{variable}

 

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:

  1. All variables referenced must have been defined prior to the VARLIST.

  2. VARLIST work with any background or I/O instruction (including screen and file I/O) that supports variable lists.

  3. 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.

  4. The ^ denotes a Pointer Variable.

  5. A pointer of this type can be with any instruction that supports variable lists.

 

 

See Also: Example Code, LIST, RECORD, Data Definitions

 



PL/B Language Reference VAR