02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LINE INPUT<br />

Chapter —Program Instructions<br />

Purpose Statement for assigning an entire line, including punctuation marks, from<br />

the standard IN channel to a single string variable.<br />

Syntax LINE ↔ INPUT[;]<br />

; is an optional prompt plus a semicolon<br />

is the string variable to which the input line is assigned.<br />

Remarks For information on standard I/O channel, see SETSTDIO statement.<br />

LINE INPUT differs from INPUT in that an entire line of max. 32,767<br />

characters will be read. Possible commas will appear as punctuation marks<br />

in the string instead of dividing the line into portions.<br />

During the execution of a program, a LINE INPUT statement will interrupt<br />

the execution. You can make a prompt being displayed on the host<br />

screen to notify the operator that the program is expecting additional data<br />

to be entered. The input is terminated and the program execution is resumed<br />

when a carriage return character (ASCII 13 decimal) is encountered.<br />

The carriage return character will not be included in the input line.<br />

Note that LINE INPUT filters out any incoming ASCII 00 dec. characters<br />

(NUL).<br />

Example Print your own visiting card like this:<br />

10 LINE INPUT "ENTER NAME: ";A$<br />

20 LINE INPUT "ENTER STREET: ";B$<br />

30 LINE INPUT "ENTER CITY: ";C$<br />

40 LINE INPUT "ENTER STATE + ZIPCODE: ";D$<br />

50 LINE INPUT "ENTER PHONE NO: ";E$<br />

60 FONT "Swiss 721 BT", 8<br />

70 ALIGN 5<br />

80 PRPOS 160,300:PRTXT A$<br />

90 PRPOS 160,250:PRTXT B$<br />

100 PRPOS 160,200:PRTXT C$<br />

110 PRPOS 160,150:PRTXT D$<br />

120 PRPOS 160,100:PRTXT "Phone: "+E$<br />

130 PRINTFEED<br />

RUN<br />

<strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong> 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!