17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

INPUT#<br />

Chapter 2 Program Instructions<br />

Field of Application Statement for reading a string of data from an OPENed device or<br />

sequential file.<br />

Syntax INPUT#,[,...]<br />

is the number assigned to the file or device when it was<br />

OPENed.<br />

is the variable to which the input data will be assigned.<br />

Remarks This statement resembles the INPUT statement, but allows the input to come<br />

from other devices than the standard IN channel or from various files. Like<br />

the INPUT statement, commas can be used to assign different portions of the<br />

input to different variables. INPUT# does not allow prompts to be used.<br />

When reading from a sequential file, the records can be read one after the other<br />

by the repeated issuing of INPUT# statements with the same file reference.<br />

Once a file record has been read, it cannot be read again until the file is<br />

CLOSEd and then OPENed again.<br />

The maximum number of characters that can be read using an INPUT#<br />

statement is 300 characters.<br />

Note that INPUT# filters out any incoming ASCII 00 dec. characters (NUL).<br />

Example This example assigns data from the first record in the sequential file<br />

"Addresses" to the three string variables A$, B$ and C$ and from the second<br />

record in the same file to the string variables D$ and E$:<br />

. . . . .<br />

. . . . .<br />

100 OPEN "ADDRESSES" FOR INPUT AS #5<br />

110 INPUT#5, A$, B$, C$<br />

120 INPUT#5, D$, E$<br />

. . . . .<br />

. . . . .<br />

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

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

Saved successfully!

Ooh no, something went wrong!