ERRN
The ERRN function returns information about the last error trapped by the
ON ERROR statement. It returns the HP Business BASIC/XL error number.
Syntax
ERRN
Examples
100 ON ERROR CALL Fixit
110 I=J/0 !The error occurred here.
120 END
200 SUB Fixit
210 PRINT ERRN
250 SUBEND
The above program prints:
31