[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
ON ERROR Enable Error Trapping
ON ERROR GOTO {linenum | linelabel}
Enables the trapping of error conditions and specifies the beginning
line of an error-trapping routine.
linenum The first line of an error-handling routine. Setting
linenum to 0 disables trapping.
linelabel A label identifying the first line of an error-handling
routine.
-------------------------------------------------------------------------
Notes: {linenum | linelabel} must be defined at the main program
level.
It is recommended that an ON ERROR GOTO 0 statement be
included within an error-handling routine to handle
unidentifiable error conditions.
While an error-handling routine is being executed, error
trapping is disabled. If an error occurs during this time,
Turbo Basic halts program execution and displays an error
message.
An error-handling routine must end with a RESUME
statement.
See Also:
$EVENT
ERADR
ERL
ERR
ERROR
RESUME
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson