VAR


8.7

 

The VAR data definition declares a typeless data variable pointer. A typeless variable can contain the address of any PL/B language variable. The statement uses one of the following formats:

 

(1)

[label]

VAR

@

(2)

[label]

VAR

[{array_size}]@

(3)

[label]

VAR

[{array_size}][,({target}),...,({target})

 

Where:

label

Optional. A Data Definition Label.

@

Required. An identifier.

array_size

Optional. An Integer decimal constant, CONST variable or equated value indicating the number of array items.

target

Optional. A previously declared VAR variable that initializes the array.

Flags Affected: NONE

Note the following:

  1. A VAR variable can only be an operand in LISTGET, ROUTINE, LROUTINE, MOVEADDR, MOVEPTR, TYPE, CLEARADR, LOADADR, and STOREADR instructions.

 

 

See Also: Example Code, Data Definitions

 



PL/B Language Reference RECORD and RECORDEND VARLIST