UBI EasyCoder 201 IIE Manuel d'instructions Page 80

  • 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 79
Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 778
Chapter 2 Program Instructions
ERR
Field of Application
Function returning the code number of an error that has occurred.
Syntax ERR
Remarks
The rmware is able to detect a number of error conditions. The errors are
represented by code numbers according to Chapter 7, Error Messages.
The ERR function enables the program to read the coded error number.
Thereby you may design your program to take proper action depending on
which type of error that may have occurred.
Example
In this example, the code number of the error decides the action to
be taken:
10 ON ERROR GOTO 1000
. . . . .
. . . . .
100 PRTXT "HELLO"
110 PRINTFEED
120 END
. . . . .
. . . . .
. . . . .
1000 IF ERR=1005 THEN PRINT "OUT OF PAPER"
1010 RESUME NEXT
You can also check the number of the last error since power up:
PRINT ERR
yields for example:
1022
Vue de la page 79
1 2 ... 75 76 77 78 79 80 81 82 83 84 85 ... 331 332

Commentaires sur ces manuels

Pas de commentaire