Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7  77
Chapter 2 Program Instructions
ERL
Field of Application
 Function returning the number of the line on which an error condition 
has occurred.
Syntax ERL
Remarks
 Also useful in connection with an ON ERROR GOTO statement.
Examples
 You  can  check  at  which line  the  last  error  since  power  up  occurred 
like this:
  PRINT ERL
 yields for example 
  40
 In this example, the line number of the line, where an error has occurred, 
decides the action to be taken (in this case the font size is too large 
for the label width):
  10    ON ERROR GOTO 1000
  20    FONT "Swiss 721 BT",100
  30    PRTXT "HELLO EVERYBODY"
  40    PRINTFEED
  50    END
  1000   IF ERL=40 THEN PRINT "PRINT ERROR"
  1010   RESUME NEXT
  RUN
yields:
  PRINT ERROR
 You can  use the  ERL function  in programs without line  numbers too, 
because such programs have automatically generated hidden line numbers 
that are revealed when the program is LISTed (see Intermec Fingerprint 
7.50, Programmer’s Guide). This is the same program as above but 
without line numbers:
  NEW
  IMMEDIATE OFF
  ON ERROR GOTO QAAA
  FONT "Swiss 721 BT",100
  PRTXT "HELLO EVERYBODY"
  PRINTFEED
  END
  QAAA: IF ERL=40 THEN PRINT "PRINT ERROR"
  RESUME NEXT
  IMMEDIATE ON
  RUN
yields:
  PRINT ERROR










