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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

INKEY$<br />

Chapter —Program Instructions<br />

Purpose Function reading the first character in the receive buffer of the standard IN<br />

channel.<br />

Syntax INKEY$<br />

Remarks For information on standard I/O channels, see SETSTDIO statement.<br />

As opposed to the INPUT statement, INKEY$ does not interrupt the<br />

program flow to wait for input data, unless a loop is created by means of a<br />

GOTO statement, see line 20 in the example below.<br />

INKEY$ is useful when the host computer is unable to end the input data<br />

with a “Carriage Return” (CR; ASCII 13 dec.), but must use some other<br />

character, for example “End of Text" (ETX; ASCII 3 dec.). Then a routine,<br />

which interprets the substitute character as a carriage return, can be created.<br />

Example In this example, none of the characters received on the standard IN channel<br />

will be printed on the host screen until a # character (ASCII 35 decimal)<br />

is encountered.<br />

10 A$ = INKEY$<br />

20 IF A$ = "" GOTO 10<br />

30 IF A$ = CHR$(35) THEN PRINT B$<br />

40 IF A$ = CHR$(35) THEN END<br />

50 B$ = B$ + A$<br />

60 GOTO 10<br />

RUN<br />

Type a number of characters on the keyboard of the host. They will not be<br />

printed on the host screen until you type a # character. Then all the characters<br />

will appear simultaneously, except for the #-sign.<br />

Note the loop between line 10 and 20, which makes the program wait for<br />

you to activate a key.<br />

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

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

Saved successfully!

Ooh no, something went wrong!