Error-Handling Functions

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

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

Erl Function

рдЬрдм рдкреНрд░реЛрдЧреНрд░рд╛рдо рдЪрд▓рдиреЗ рдХреЗ рджреМрд░рд╛рди рдХреЛрдИ рддреНрд░реБрдЯрд┐ рд╣реЛрддреА рд╣реИ рддреЛ рд▓рд╛рдЗрди рдХреНрд░рдорд╛рдВрдХ рдкреНрд░рд╕реНрддреБрдд рдХрд░рддрд╛ рд╣реИ.

Err Function

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

Error Function

рддреНрд░реБрдЯрд┐ рд╕рдВрджреЗрд╢ рдкреНрд░рд╕реНрддреБрдд рдХрд░рддрд╛ рд╣реИ рдЬреЛ рдХрд┐ рджрд┐рдП рдЧрдП рддреНрд░реБрдЯрд┐ рдХреЛрдб рдХреЗ рддрджрдиреБрд░реБрдк рд╣реЛрддрд╛ рд╣реИ.

On Error GoTo ... Resume Statement

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