Programming instructions

Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7130
Chapter 2 Program Instructions
INPUT$
Field of Application
Function returning a string of data, limited in regard of number
of characters, from the standard IN channel, or optionally from an
OPENed le or device.
Syntax INPUT$(<nexp
1
>[,<nexp
2
>])
<nexp
1
> is the number of characters to be read.
<nexp
2
> optionally speci es a le or device using the number assigned
to it when it was OPENed.
Remarks
If no le or device is speci ed, the input will come from the standard I/O
channel (default "uart1:", see SETSTDIO statement). Otherwise, it will
come from the speci ed le or device. The execution will be held until the
speci ed number of characters has been received from the keyboard console,
le, or communication channel. If a le does not contain the speci ed
number of characters, the execution will be resumed as soon as all available
characters in the le have been received.
The maximum number of characters that can be returned using an INPUT$
statement is 65,536 characters.
Examples
This example reads a sequence of 25 characters from the printers built-in
keyboard and assigns them to a string variable named Z$:
. . . . .
. . . . .
1000 OPEN "CONSOLE:" FOR INPUT AS #1
1010 Z$=INPUT$(25,1)
. . . . .
. . . . .
In this example, 10 characters are read from the standard IN channel
and assigned to a variable.
10 A$=INPUT$(10)