Error-Handling Functions

Use the following statements and functions to define the way Collabora Office Basic reacts to run-time errors.

Collabora Office Basic offers several methods to prevent the termination of a program when a run-time error occurs.

Erl Function

Returns the line number where an error occurred during program execution.

Err Function

Returns an error code that identifies the error that occurred during program execution.

Error Function

Returns the error message that corresponds to a given error code.

On Error GoTo ... Resume Statement

Enables an error-handling routine after an error occurs, or resumes program execution.

Please support us!