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:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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:
The selection of a variable from the list is determined by the {index} value.
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.
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
![]() |