Programming instructions

20
Intermec Fingerprint 6.13 – Programmer's Guide
Continued!
4. TERMINOLOGY AND SYNTAX, cont'd.
2. Statements, cont'd.
3. Functions
4. Other Instructions
You may use a blank space to separate the keyword from the rest of
the statement, which must be entered exactly according to the
specified syntax. Note that in some cases, a space character is a
compulsory part of the keyword, e.g. LINE
INPUT. When such is
the case, it is indicated by the syntax description in the Fingerprint
Reference Manual.
A function is a procedure, which returns a value. A function consists
of a keyword combined with values, flags, and/or operators. The
keyword can be entered as uppercase or lowercase letters, but it will
always appear as uppercase letters, when the program is listed on the
screen. Values, flags, and operators must be enclosed by parenthe-
ses ( ). The operators will be explained later on.
Examples:
CHR$(65) Keyword with parameter
TIME$("F") Keyword with flag
ABS (20*5) Keyword with arithmetic operator (*) and
values
IF(PRSTAT AND 1)... Keywords, logical operator (AND) and
value
A function can be entered inside a statement or on a line containing
other instructions. They are often used in connection with condi-
tional statements, e.g.:
320 IF (PRSTAT AND 1) THEN GOTO 1000
Blank spaces may be inserted to separate the function from other
instructions and also to separate the keyword from the rest of the
statement.
In addition to statements and functions, there are a few other types
of specialized instructions such as the DATE$ and TIME$ vari-
ables, the SYSVAR system array and the PCX2BMP external
command, which do not fit into the above-mentioned categories.
In the descriptions of the syntax for the various instructions, the
word “Expression” is used to cover both constants and variables.
Expressions are of two kinds:
String expressions are carriers of alphanumeric text, i.e. string
constants and string variables. Numbers are treated as text, not as
values.
Numeric expressions contain numeric values and operators, i.e.
numeric constants and numeric variables.
Keywords
Also see:
Chapter 4.7 amd 4.8
Operators
Also see:
Chapter 4.9
Conditional Instructions
Also see:
Chapter 5.5
5. Expressions