Futurebasic/Language/Reference/on error end

Statement
Syntax:

ON ERROR END

Revised
June, 2001 (Release 5)

Description
There are two possible outcomes when using this statement and they depend on other factors in your program. If you have not established any other error handling routine, then you may use this routine to turn off all error checking. Errors such as file errors will be ignored. It will be your responsibility to track them manually after each file access statement by checking the function. This concept is demonstrated in the example below.

A second use involves programs where you have set up your own error handling routines. You may toggle between FB's error handling and your program's built-in error handlers by using  to turn off FB's handlers and use the ones in your program. Alternatively, you may use  to reinstate FB's handlers.

Example:

Note: If you turn off error checking and you get an error with , then your program must clear the error variable with