Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7 223
Chapter 2 Program Instructions
RESUME
Field of Application
Statement for resuming program execution after an error-handling
subroutine has been executed.
Syntax RESUME[<<ncon>|<line label>|<NEXT>|<0>>|<HTTP>]
<ncon> is the number or label of the line to which the program
should return.
Remarks
RESUME must only be used in connection with error-handling subroutines
(see ON ERROR GOTO).
There are fi ve ways of using RESUME:
RESUME Execution is resumed at the statement where
the error occurred.
RESUME 0 Same as RESUME.
RESUME NEXT Execution is resumed at the statement
immediately following the one that caused
the error.
RESUME <ncon> Execution is resumed at the specifi ed line.
RESUME <line label> Execution is resumed at the specifi ed line
label.
RESUME <HTTP> Execution is resumed at the point where
it was branched by an ON HTTP GOTO
statement. Stdin and stdout are restored to
their original values.
Examples
This short program is the basis for two examples of alternative subroutines:
10 ON ERROR GOTO 1000
20 FONT "Swiss 721 BT"
30 PRPOS 100,100
40 PRTXT "HELLO"
50 PRPOS 100, 300
60 PRIMAGE "GLOBE.1"
70 PRINTFEED
80 END
1. A font is selected automatically and execution is resumed from the line
after where the error occurred. If another error than the specifi ed error
condition occurs, the execution is terminated.
1000 IF ERR=15 THEN FONT "Swiss 721 BT":RESUME NEXT
1010 RESUME 80
2. An error message is displayed and the execution goes on from the line
following the one where the error occurred.
1000 IF ERR=15 THEN PRINT "Font not found"
1010 RESUME NEXT