Use VarAdd to add a specified value to a specified variable.
VarAdd may also be entered as Add.
Required Operands
OPER1 is the name of a previously declared numeric variable.
OPER2 is a non-negative numeric integer.
OPER2 will be added to the contents of the OPER1 variable. The result will be stored in the OPER1 variable.
Return Codes
OK Successful.
Examples
Procedure to use VarAdd in processing a sequence of statements 12 times:
------------------------------------------------------------------------
DECLARE COUNTER,NUM,6,V
SET COUNTER,0
BLOCK
ADD COUNTER,1
IF COUNTER,GT,12
LEAVE
.... lines to be processed 12 times ....
LOOP
ENDBLOCK
------------------------------------------------------------------------