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

Convierte una espresión de cadena o una espresión numbérica nuna espresión variant del subtipu "Fallu".

Función Erl

Devuelve'l númberu de llinia en que se produció un fallu mientres la execución d'un programa.

Función Err

Devuelve un códigu qu'identifica l'error que se produció al executase'l programa.

Oxetu Err [VBA]

Use VBA Err object to raise or handle runtime errors.

IsError Function

Comprueba si una variable contién un valor de fallu.

Error Function

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

On Error GoTo ... Resume Statement

Habilita una rutina de manexu de fallos dempués de producise éstos o sigue la execución del programa.

Resume Statement

Resets error information and indicates what to execute next.

ScriptForge.Exception service

The Exception service is a collection of methods to assist in code debugging in Basic and Python scripts and in error handling in Basic scripts.

In Basic scripts, when a run-time error occurs, the methods and properties of the Exception service help identify the error context and allow to handle it.

Please support us!