131
MANUAL DO USUÁRIO DC-2000 / PROGRAMA WINTASKGEN - Revisão 1.5
Line No.
Operator
Source Operand
Destination
Operand
1
SUB
10
TEMPVAR
will change TEMPVAR value to 10.
VAL
Syntax:
Operator
Source Operand
Destination Operand
VAL
OPERAND1
OPERAND2
Description:
Convert the data held in OPERAND1 to numeric type and store it in OPERAND2.
Operand Data Type:
OPERAND1: string constant, string variable
OPERAND2: numeric variable
Examples:
TEMPVAR is defined a as numeric variable; then
Line No.
Operator
Source Operand
Destination
Operand
1
VAL
"12345"
TEMPVAR
will convert the string "12345" to the number 12345 and store it in TEMPVAR.
4.4 Variáveis do Sistema
System Variables
*(Asterisk)
* is a temporary storage register, representing the contents of the current data
entry after using INP or INX macro. It can be either numeric or string data type
Examples:
1. When TEMPVAR is a variable, then a procedure could have:
Line No.
Operator
Source Operand
Destination
Operand
1
INP
*
2
ADD
*
TEMPVAR
which will add input data to TEMPVAR.