STOREADR


8.7

 

The STOREADR statement stores the address of a variable into a pointer variable found in a variable list. The selection of a variable from the variable list is determined by an index. The instruction uses one of the following formats:

 

(1)

[label]

STOREADR

{var}{sep}{index}{sep}{varptr}[,{varptr}...]

(2)

[label]

STOREADR

{var}{sep}{index}{sep}{varlist}

(3)

[label]

STOREADR

{var}{sep}{index}{sep}{array}

 

Where:

label

Optional. A Program Execution Label.

var

Required. A PL/B variable of any type.

sep

Required. A comma or one of the following prepositions: BY, TO, OF, FROM, USING, WITH, IN, or INTO.

index

Required. A Numeric Variable or literal that indicates which variable from the list receives the value.

varptr

Required. A Pointer Variable or VAR whose type is the same as {var}.

varlist

Required. A VARLIST of variables whose types are compatible with {destptr}.

array

Required. A Array of variable pointers whose types are compatible with {destptr}

Flags Affected: NONE

Note the following:

  1. The selection of a variable from the list is determined by the {index} value.

  2. If the {index} value is zero or greater than the number of variables processed in the variable list, no action is taken and the {var} remains unchanged.

  3. If the {var} variable is a VAR typeless variable, no type checking is done.

 

 

See Also: Example Code, MOVEADDR, MOVEPTR, SMAKE, CLEARADR, LOADADR, System Interface Instructions

 



PL/B Language Reference SHUTDOWN STORELABEL