129
MANUAL DO USUÁRIO DC-2000 / PROGRAMA WINTASKGEN - Revisão 1.5
2.3.28 SND
Syntax:
Operator
Source Operand
Destination Operand
SND
OPERAND1
OPERAND2
Description:
Send both the content held by OPERAND1 and a terminator character specified
in OPERAND2 from the serial port.
Operand Data Type:
OPERAND1: string constant, string variable
OPERAND2: numeric constant as
0: terminator CR (carriage return)
1: terminator LF (line feed)
2: terminator CRLF (carriage return and line feed)
3: no terminator
Examples:
If TEMPVAR is defined as a string variable; then
Line No.
Operator
Source Operand
Destination
Operand
1
SND
TEMPVAR
2
will send the content of TEMPVAR and a terminator "CRLF" from the serial port.
2.3.29 SRH
Syntax:
Operator
Source Operand
Destination Operand
SRH
OPERAND1
OPERAND2
Description:
Search the selected data file, determine whether the same data is held in
OPERAND2 or not, OPERAND1 specifies the field number. This macro supports
the sequential search of the file.
If the data held in OPERAND2 is found in the file, the compare flag is set to EQ.
if it is not found, the compared flag is set to NE.
Operand Data Type:
OPERAND1: numeric constant, numeric variable
OPERAND2: string constant, string variable
Examples:
Search for the string "HOTWORD" from record number 1 in the file "CUSTOM"
field number 1.