Programming instructions

84
Intermec Fingerprint 6.13 – Programmer's Guide
PRINT (or ?), cont'd.
• A semicolon places the expression that follows immediately
adjacent to the preceding expression.
Example:
PRINT "Price_";"$10" Yields:
Price_$10
A plus sign places the string expression that follows immediately
adjacent to the preceding string expression (plus signs can only be
used between two string expressions).
Example:
PRINT "Price_"+"$10" Yields:
Price_$10
Each line is terminated by a carriage return, as to make the next
PRINT statement being started on a new line. However, if a
PRINT statement is appended by a semicolon, the carriage return
will be suppressed and next PRINT statement will be printed
adjacently to the preceding one.
Example:
10 PRINT "Price_";"$10";
20 PRINT "_per_dozen"
RUN Yields:
Price_$10_per_dozen
A PRINT statement can also be used to return the result of a
calculation or a function.
Example:
PRINT 25+25:PRINT CHR$ (65) Yields:
50
A
If the PRINT statement is not followed by any expression, a blank
line will be produced.
PRINTONE
The PRINTONE statement prints the alphanumeric representation
of one or several characters specified by their respective ASCII
values (according to the currently selected character set, see NASC
statement in chapter 9.1) to the standard OUT channel.
The PRINTONE statement is useful e.g. when a certain character
cannot be produced from the keyboard of the host.
PRINTONE is very similar to the PRINT statement and follows the
same rules regarding separating characters, i.e. commas and semi-
colons).
Example:
PRINTONE 80;114;105;99;101,36;32;49;48 Yields:
Price $_10
8. OUTPUT FROM FINGERPRINT, cont'd.
1. Output to Std OUT
Channel, cont'd.