ERRMSHORT$ [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
ERRMSHORT$
The ERRMSHORT$ functions returns information about the last error trapped
by the ON ERROR statement. It returns an error message of the form:
ERROR n IN LINE m
where n is the HP Business BASIC/XL error number, and m is the line
number that the error occurred in.
Syntax
ERRMSHORT$
Example
100 ON ERROR CALL Fixit
110 I=J/0 !The error occurred here.
120 END
200 SUB Fixit
210 PRINT ERRMSHORT$
250 SUBEND
The above program prints:
ERROR 31 IN LINE 110
MPE/iX 5.0 Documentation