Remote Processing CAMBASIC User Manual
Page 76

Comm ands - 43
ERL
System Variable
SYNTAX:
n = ERL
PURPOSE:
To return the line number associated with an error.
REMARK S:
T h e fu n ct io n r et ur n s t he li ne n um b e r o f th e la s t e r r or e n co u nt e re d by C A M BA S IC .
RELATED:
E R R, O N E RR , R ES U M E
EXAMPLE:
10 ON ERR GOTO 50 : 'enable error trapping
20 INPUT"Enter a number to divide by. (0 will cause error):”,A
30 B=10 / A
40 GOTO 20
50 PRINT"Error#" ; ERR” ; occurred on line#” ; ERL
60 ON ERR GOTO 50 : ‘re-enable error trapping
70 RESUME NEXT : ‘resume at next statement after error
ERROR:
none