bas7qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ON ERROR Statement
  ◄Syntax►  ◄Details►  ◄Example►                 ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
ON [LOCAL] ERROR {GOTO line | RESUME NEXT | GOTO 0}
 
    ■ LOCAL        Used to indicate an error-handling routine in the
                   same procedure. If not used, module-level error handlers
                   are indicated.
    ■ GOTO line    Enables the error-handling routine that starts at
                   line. Thereafter, if a run-time error occurs, program
                   control branches to line (a label or a line number).
    ■ RESUME NEXT  Specifies that, when a run-time error occurs,
                   control goes to the statement after the statement where
                   the error occurred; the ERR function can then be used to
                   obtain the run-time error code.
    ■ GOTO 0       Disables any enabled module-level error-handling
                   routine within the current module, or disables any
                   enabled error handler in the current procedure, if
                   used together with the LOCAL keyword.
 
See Also    ◄RESUME►    ◄ERR, ERL Functions►    ◄ERROR►    ◄LOCAL Keyword►