RESUME statement

Purpose

Restart program execution after error handling with ON ERROR GOTO.

Syntax

RESUME [label | NEXT]

Remarks

The RESUME statement is used to continue execution of a program after a run-time error has been trapped and processed with an ON ERROR handler.  If a label is specified, execution continues at the specified label. If NEXT is specified, execution continues on the line after the error occurred. If you do not specify a label or NEXT, execution continues where the error occurred, so make sure you've fixed the cause of the error first!

Restrictions

ON ERROR and RESUME may not be used within a TRY/END TRY block.

See also

ERL, ERR, ERROR, Error OverviewERROR$, Error TrappingON ERROR, Run-time Errors

Example

See the examples in Error Trapping.