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.

CVErr Function

Converts a string expression or numeric expression to a variant expression of the sub type "Error".

Erl Function

Vraća broj linije gdje se dogodila grešla prilikom izvršavanja programa.

Err Function

Vraća poruku o grešci koja prepoznaje grešku koja se je bila dogodila prilikom izvršenja programa.

Err Object [VBA]

Use VBA Err object to raise or handle runtime errors.

IsError Function

Tests if a variable contains an error value.

Error Function

Returns the error message that corresponds to a value or raises a given error context.

On Error GoTo ... Resume Statement

Omogućuje proceduru za upravljanje greškama nakon što se pojavi greška, ili nastavlja izvođenje programa.

Resume Statement

Resets error information and indicates what to execute next.

Please support us!