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.

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

Chapter 2 Program Instructions<br />

Examples, <strong>cont'd</strong>. In this examples, line numbers have been omitted and line labels are used to<br />

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 7.2 – Reference Manual Ed. 3 96

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

Saved successfully!

Ooh no, something went wrong!