Vector Basic Interpreter Basic 80 Reference Manual - page 51
of
190
2. 1 9
E!! ~
~
VARIABLES
When an error hand~ing
subroutine
is
entered,
the variable ERR contains the error code for the
error, and the variable ERL
contains
the
line
number
of
the
line
in
which
the
error was
detected.
The ERR and ERL variables are
usually
used
in
IF •••THEN statements to direct program
flow in the error trap routine.
If the statement that caused
the
error
was
a
direct
mode
statement, ERL will contain 65535.
To
test
if
an
error
occurred
in
a
direct
statement, use IF
65535
• ERL THEN •••
Otherwise, use
If the line number is not on the right
side
of
the relational operator, it cannot be renumbered
by
RENUM.
Because
ERL
and
ERR
are
reserved
variables, neither may appear to the left of the
equal sign
in
a
LET
(assignment)
statement.
BASIC-80's error codes are listed in Appendix J.