Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>on error enable error trapping</b> http://www.X-Hacker.org [<<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

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson