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.

Chapter —Program Instructions<br />

INPUT$<br />

Purpose Function returning a string of data, limited in regard of number of characters,<br />

from the standard IN channel, or optionally from an OPENed file or<br />

device.<br />

Syntax INPUT$([,])<br />

is the number of characters to be read.<br />

optionally specifies a file or device using the number assigned to<br />

it when it was OPENed.<br />

Remarks If no file or device is specified, the input will come from the standard I/O<br />

channel, see SETSTDIO statement.<br />

Otherwise, it will come from the specified file or device. The execution will<br />

be held until the specified number of characters has been received from<br />

the keyboard console, file, or communication channel. If a file does not<br />

contain the specified number of characters, the execution will be resumed<br />

as soon as all available characters in the file have been received.<br />

The maximum number of characters that can be returned using an<br />

INPUT$ statement is 65,536 characters.<br />

Examples This example reads a sequence of 25 characters from the printer’s built-in<br />

keyboard and assigns them to a string variable named Z$:<br />

. . . . .<br />

. . . . .<br />

1000 OPEN "CONSOLE:" FOR INPUT AS #1<br />

1010 Z$=INPUT$(25,1)<br />

. . . . .<br />

. . . . .<br />

In this example, 10 characters are read from the standard IN channel and<br />

assigned to a variable.<br />

10 A$=INPUT$(10)<br />

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

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

Saved successfully!

Ooh no, something went wrong!