123
MANUAL DO USUÁRIO DC-2000 / PROGRAMA WINTASKGEN - Revisão 1.5
4.3.18 LFT
Syntax:
Operator
Source Operand
Destination Operand
LFT
OPERAND1
OPERAND2
Description:
Retrieve the leftmost characters of n length of OPERAND2 and store
the sub-string back in OPERAND2, where length n is specified by OPERAND1.
Operand Data Type:
OPERAND1
numeric constant, numeric variable
OPERAND2
string variable
Examples:
TEMPVAR is defined as string and TEMPCNT as numeric variable; then
Line No.
Operator
Source Operand
Destination
Operand
1
LEN
TEMPVAR
TEMPCNT
2
SUB
1
TEMPCNT
3
LFT
TEMPCNT
TEMPVAR
will truncate the last character of TEMPVAR.
4.3.19 MOV
Syntax:
Operator
Source Operand
Destination Operand
MOV
OPERAND1
OPERAND2
Description:
Copy the content of OPERAND1 to OPERAND2.
OPERAND1 is not changed, OPERAND2 becomes the same as OPERAND1.
Operand Data Type:
OPERAND1: numeric constant, numeric variable, string constant, string
variable, DATE string, TIME string, field name of current append record
OPERAND2: numeric variable, string variable, field variable field name of
current append record
Examples:
If we want to add date to DATE _F field, and display on LCD position 1