Fungsi Penanganan Kesalahan

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

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

Menghasilkan pesan kesalahan yang berkorespondensi dengan kode kesalahan yang diberikan.

On Error GoTo ... Resume Statement

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