Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7152
Chapter 2 Program Instructions
LINE INPUT
Field of Application
Statement for assigning an entire line, including punctuation marks,
from the standard IN channel to a single string variable.
Syntax LINE
↔
INPUT[<scon>;]<svar>
<scon>; is an optional prompt plus a semicolon
<svar> is the string variable to which the input line is assigned.
Remarks
For information on standard I/O channel, see SETSTDIO statement. By
default, "uart1:" is the standard I/O channel.
LINE INPUT differs from INPUT in that an entire line of max. 32,767
characters will be read. Possible commas will appear as punctuation marks
in the string instead of dividing the line into portions.
During the execution of a program, a LINE INPUT statement will interrupt
the execution. You can make a prompt being displayed on the host screen
to notify the operator that the program is expecting additional data to be
entered. The input is terminated and the program execution is resumed when
a carriage return character (ASCII 13 decimal) is encountered. The carriage
return character will not be included in the input line.
Note that LINE INPUT fi lters out any incoming ASCII 00 dec. characters
(NUL).
Example
Print your own visiting card like this:
10 LINE INPUT "ENTER NAME: ";A$
20 LINE INPUT "ENTER STREET: ";B$
30 LINE INPUT "ENTER CITY: ";C$
40 LINE INPUT "ENTER STATE + ZIPCODE: ";D$
50 LINE INPUT "ENTER PHONE NO: ";E$
60 FONT "Swiss 721 BT", 8
70 ALIGN 5
80 PRPOS 160,300:PRTXT A$
90 PRPOS 160,250:PRTXT B$
100 PRPOS 160,200:PRTXT C$
110 PRPOS 160,150:PRTXT D$
120 PRPOS 160,100:PRTXT "Phone: "+E$
130 PRINTFEED
RUN