17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

RESUME<br />

Chapter 2 Program Instructions<br />

Field of Application Statement for resuming program execution after an error-handling<br />

subroutine has been executed.<br />

Syntax RESUME[]<br />

is the number or label of the line to which the program should<br />

return.<br />

Remarks RESUME must only be used in connection with error-handling subroutines<br />

(see ON ERROR GOTO).<br />

There are five ways of using RESUME:<br />

RESUME Execution is resumed at the statement<br />

where the error occurred.<br />

RESUME 0 Same as RESUME.<br />

RESUME NEXT Execution is resumed at the statement<br />

immediately following the one that caused<br />

the error.<br />

RESUME Execution is resumed at the specified line.<br />

RESUME Execution is resumed at the specified line<br />

label.<br />

Examples This short program is the basis for two examples of alternative subroutines:<br />

10 ON ERROR GOTO 1000<br />

20 FONT "Swiss 721 BT"<br />

30 PRPOS 100,100<br />

40 PRTXT "HELLO"<br />

50 PRPOS 100, 300<br />

60 PRIMAGE "GLOBE.1"<br />

70 PRINTFEED<br />

80 END<br />

1. A font is selected automatically and execution is resumed from the line after<br />

where the error occurred. If another error than the specified error condition<br />

occurs, the execution is terminated.<br />

1000 IF ERR=15 THEN FONT "Swiss 721 BT":RESUME NEXT<br />

1010 RESUME 80<br />

2. An error message is displayed and the execution goes on from the line<br />

following the one where the error occurred.<br />

1000 IF ERR=15 THEN PRINT "Font not found"<br />

1010 RESUME NEXT<br />

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

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

Saved successfully!

Ooh no, something went wrong!