Programming instructions

95
Intermec Fingerprint 6.13 – Programmer's Guide
9. DATA HANDLING, cont'd.
2. Input Data Conversion
Continued!
There are a number of instruction for converting data in numeric or
string expressions. You will find them used in many examples in
this volume. The instructions will only be described in short terms.
For full information, please refer to the Fingerprint 6.13 Reference
Manual.
ABS
The ABS function returns the absolute value of a numeric expres-
sion. Absolute value means that the value is either positive or zero.
Example:
PRINT ABS (10–15) Yields:
5
ASC
The ASC function returns the decimal ASCII value of the first
character in a string expression.
Example:
PRINT ASC("HELLO") Yields:
72
CHR$
The CHR$ function returns the readable character from a decimal
ASCII value. This function is useful when you cannot produce a
certain character from the keyboard of the host.
Example:
PRINT CHR$(72) Yields:
H
INSTR
The INSTR function searches a string expression for a certain
character, or sequence of characters, and returns the position.
Example:
PRINT INSTR ("Intermec","NT") Yields:
2
LEFT$
The LEFT$ function returns a certain number of characters from the
left side of a string expression, i.e. from the start. The complemen-
tary instruction is RIGHT$.
Example:
PRINT LEFT$("INTERMEC PRINTER",8) Yields:
INTERMEC