HP 3000 Manuals

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


HP Business BASIC/XL Reference Manual

CAUSE ERROR 

The CAUSE ERROR statement causes an HP Business BASIC/XL program to
behave as though the specified error had occurred.  If an ON ERROR
statement has been issued, then the user-specified recovery action is
executed.

Syntax 

CAUSE ERROR error_number 

Parameters 

error_number     A numeric value that is the same as an HP Business
                 BASIC/XL error number.

Example 

     10 ON ERROR GOTO 200
     20 CAUSE ERROR 2      !This causes an error 2, memory overflow
     30                    !Control transfers to line 200
     .

     .

     .

     200 Error handler:    !Start of error handling routine

     .

     .

     .



MPE/iX 5.0 Documentation