Programming instructions

Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7 183
Chapter 2 Program Instructions
ON KEY GOSUB, cont.
Examples
This example illustrates how activating the F1 key (id. No. 10) will make the
program branch to a subroutine, which contains the PRINTFEED statement.
Note line 30 where the execution will wait for the key to be pressed.
10 ON KEY (10) GOSUB 1000
20 KEY (10) ON
30 GOTO 30
.....
.....
.....
1000 FONT "Swiss 721 BT"
1010 PRPOS 30,100
1020 PRTXT "HELLO"
1030 PRINTFEED
1040 END
RUN
The same example can be written without line numbers this way:
IMMEDIATE OFF
ON KEY (10) GOSUB QQQ
KEY (10) ON
WWW: GOTO WWW
.....
.....
.....
QQQ: FONT "Swiss 721 BT"
PRPOS 30,100
PRTXT "HELLO"
PRINTFEED
END
IMMEDIATE ON
RUN