UBI EasyCoder 201 IIE Manuel d'instructions Page 225

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 332
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 224
Intermec Fingerprint v7.61 Programmers 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 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 speci ed line.
RESUME <line label> Execution is resumed at the speci 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 speci 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
Vue de la page 224
1 2 ... 220 221 222 223 224 225 226 227 228 229 230 ... 331 332

Commentaires sur ces manuels

Pas de commentaire