HP 3000 Manuals

ERRL [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

ERRL 

The ERRL function returns information about the last error trapped by an
ON ERROR statement.  It returns the line number that the error occurred
in.

Syntax 

ERRL

Example 

     100 ON ERROR CALL Fixit
     110 I=J/0                    !The error occurred here.
     120 END
     200 SUB Fixit
     210 PRINT ERRL
     250 SUBEND

The above program prints:

     110



MPE/iX 5.0 Documentation