17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ON KEY GOSUB, <strong>cont'd</strong>.<br />

Chapter 2 Program Instructions<br />

Examples This example illustrates how activating the F1 key (i.d. No. 10) will make the<br />

program branch to a subroutine, which contains the PRINTFEED statement.<br />

Note line 30 where the execution will wait for the key to be pressed.<br />

10 ON KEY (10) GOSUB 1000<br />

20 KEY (10) ON<br />

30 GOTO 30<br />

.....<br />

.....<br />

.....<br />

1000 FONT "Swiss 721 BT"<br />

1010 PRPOS 30,100<br />

1020 PRTXT "HELLO"<br />

1030 PRINTFEED<br />

1040 END<br />

RUN<br />

The same example can be written without line numbers this way:<br />

IMMEDIATE OFF<br />

ON KEY (10) GOSUB QQQ<br />

KEY (10) ON<br />

WWW: GOTO WWW<br />

.....<br />

.....<br />

.....<br />

QQQ: FONT "Swiss 721 BT"<br />

PRPOS 30,100<br />

PRTXT "HELLO"<br />

PRINTFEED<br />

END<br />

IMMEDIATE ON<br />

RUN<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 163

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

Saved successfully!

Ooh no, something went wrong!