If the value of NumExpr is not an error code used by Basmark QuickBASIC, it is considered to be a user-defined error code. A user-defined error code may be tested in an error-handling routine just like any other error. See second example below.
t = 11 20 error tproduces
Division by zero in line 20The next example is a part of a program that requests the user’s age. By using an error code of 235, which Basmark QuickBASIC doesn’t use, the program traps the error if the response is absurd.
10 on error goto 40 20 input "what is your age"; x 30 if x > 100 or x < 3 then error 235 . . . 40 if err = 235 then print "and chickens have lips"
from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber