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

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

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

GOSUB, cont.<br />

Chapter —Program Instructions<br />

In this examples, line numbers have been omitted and line labels are used<br />

to make the program branch to subroutines:<br />

IMMEDIATE OFF<br />

PRINT "This is the main program"<br />

GOSUB SUB1<br />

PRINT "You’re back in the main program"<br />

END<br />

SUB1: PRINT "This is subroutine 1"<br />

GOSUB SUB2<br />

PRINT "You’re back from subroutine 2 to 1"<br />

RETURN<br />

SUB2: PRINT "This is subroutine 2"<br />

GOSUB SUB3<br />

PRINT "You’re back from subroutine 3 to 2"<br />

RETURN<br />

SUB3: PRINT "This is subroutine 3"<br />

PRINT "You’re leaving subroutine 3"<br />

RETURN<br />

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

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

Saved successfully!

Ooh no, something went wrong!