Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7 181
Chapter 2 Program Instructions
ON KEY GOSUB
Field of Application
Statement for branching to a subroutine when a specifi ed key on the
printer’s front panel is activated.
Syntax ON
↔
KEY(<nexp>)GOSUB<ncon>|<line label>
<nexp> is the id. number of one of the keys on the printer’s front
panel (see illustration below).
<ncon>/<line label> is the number or label of the line to which the program will
branch when the specifi ed key is pressed down.
Remarks
All Intermec Fingerprint v7.xx-compatible printer models are fi tted with a
membrane-switch keyboard. Each key can be enabled individually using its
id. number in a KEY ON statement. Then the key can be assigned, alone or in
combination with the <Shift> key, to make the program branch to a subroutine
using an ON KEY... GOSUB statement. The <Shift> key adds 100 to the
unshifted id. number of each key, as illustrated below.
Note the difference between the id. numbers of the keys and the ASCII values
they are able to produce (see for example BREAK).
Note that BREAK takes precedence over any ON KEY statement,
provided that break interrupt is not disabled for the "console:" by a
BREAK 0 OFF statement.