HP 3000 Manuals

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


HP Business BASIC/XL Reference Manual

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



MPE/iX 5.0 Documentation