Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <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 (and all other event trapping) is disabled. If an
                error occurs during this time, QuickBASIC halts program
                execution and displays an error message.

                An error-handling routine must end with a RESUME
                statement.

                When compiling a QuickBASIC program that uses ON ERROR and
                RESUME, you must use the On Error (/e) and Resume Next
                (/x) compile options.

See Also: ERL ERR ERROR RESUME

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