17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

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 2 Program Instructions<br />

Field of Application Statement for assigning an entire line, including punctuation marks,<br />

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

Syntax LINE INPUT[;]<br />

↔<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. By<br />

default, "uart1:" is the standard I/O channel.<br />

LINE INPUT differs from INPUT in that an entire line of max. 300 characters<br />

will be read. Possible commas will appear as punctuation marks in the string<br />

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 screen of the<br />

terminal or host computer to notify the operator that the program is expecting<br />

additional data to be entered. The input is terminated and the program<br />

execution is resumed when a carriage return character (ASCII 13 decimal) is<br />

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

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<br />

RUN<br />

PRINTFEED<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 134

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

Saved successfully!

Ooh no, something went wrong!