MOVE - Variable to List of Variables
The MOVE variable to a list of variables instruction allows multiple variables to all be set to the same value in a single instruction. It uses one of the following formats:
|
|
|
|
|
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
source
Required. A Character String Variable or numeric (FORM or INTEGER ) variable that serves as the source operand.
sep
Required. A comma or one of the following prepositions: BY, TO, OF, FROM, USING, WITH, IN, or INTO.
list1
Required. A list of destination variables or VARLISTs.
expression
Required. An Expression that serves as the source operand.
list2
Required. A list of numeric destination variables or VARLISTs of numeric variables.
Flags Affected: ZERO
Note the following:
{list} may contain variables and VARLISTs.
If operating in ANSI mode, all variables in {list} must be of the same type.
If an {expression} is used, all destination variables must be numeric.
Each MOVE operation is handled according to the rules previously stated for that individual MOVE.
See Also: Example Code, CALC, MOVE
![]() |