Programming instructions
21
Intermec Fingerprint 6.13 – Programmer's Guide
4. TERMINOLOGY AND SYNTAX, cont'd.
Constants are fixed text or values. There are two kinds:
• String constants are sequences of characters, i.e. text. If digits or
operators are included, they will be considered as text and will not
be processed. String constants must always be started and
terminated by double quotation marks ("..."), for example
"LABEL1.PRG".
• Numeric constants are fixed numeric values. Only decimal
integers are allowed, i.e. 1, 2, 3, 4, 5 etc. Decimal points (e.g.
1.56890765) are not supported. Values may be positive or
negative. Positive number may optionally be indicated by a
leading plus sign (+), whereas negative numbers always must be
indicated by a leading minus sign (-).
Note that certain characters, e.g. digits, can be either string
constants (text) or numeric constants (numbers). To allow the
firmware to detect that difference, string constants must always be
enclosed by double quotation marks (" ....."), as opposed to numeric
constants.
Variables are value holders. There are two main types:
• String variables are used to store strings entered as string constants
or produced by Fingerprint instructions. Max. size is 64 kbytes.
String variables are indicated by a trailing $ sign.
Examples:
A$ = "EASYCODER PRINTER"
B$ = TIME$
LET C$ = DATE$
• Numeric variables are used to store numbers, entered as numeric
constants, or produced by Fingerprint instructions or operations.
Numeric variables are indicated by a trailing % sign.
Examples:
A% = 150
B% = DATEDIFF ("981001","981130")
LET C% = 2^2
The name of a variable may consist of letters, numbers and decimal
points. The first character must always be a letter. No keywords or
keyword abbreviations must be used. However, completely em-
bedded keywords are allowed.
Examples:
LOC is a keyword
CLOCK$ = "ABC" is OK
LOC$ = "ABC" causes an error
LOCK$ = "ABC" causes an error.
Continued!
6. Constants
7. Variables