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

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

Purpose Statement for reading a string of data from an OPEN device or sequential<br />

file.<br />

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

is the number assigned to the file or device when it was 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<br />

come from other devices than the standard IN channel or from various<br />

files. Like the INPUT statement, commas can be used to assign different<br />

portions of the input to different variables. INPUT# does not allow<br />

prompts to be used.<br />

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

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

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 32,767 characters.<br />

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

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

second 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 <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong> 1 1

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

Saved successfully!

Ooh no, something went wrong!