Programming instructions
Intermec Fingerprint v7.61 – Programmer’s 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 fi le or device.
Syntax INPUT$(<nexp
1
>[,<nexp
2
>])
<nexp
1
> is the number of characters to be read.
<nexp
2
> optionally specifi es a fi le or device using the number assigned
to it when it was OPENed.
Remarks
If no fi le or device is specifi ed, the input will come from the standard I/O
channel (default "uart1:", see SETSTDIO statement). Otherwise, it will
come from the specifi ed fi le or device. The execution will be held until the
specifi ed number of characters has been received from the keyboard console,
fi le, or communication channel. If a fi le does not contain the specifi ed
number of characters, the execution will be resumed as soon as all available
characters in the fi 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 printer’s 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)