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 expresión de cadena o una expresión numérica en una expresión variant del subtipo "Error".

Función Erl

Devuelve el número de línea en que se produjo un error durante la ejecución de un programa.

Función Err

Devuelve un código que identifica el error que se ha producido durante la ejecución del programa.

Objeto Err [VBA]

Use VBA Err object to raise or handle runtime errors.

IsError Function

Comprueba si una variable contiene un valor de error.

Función Error

Devuelve el mensaje de error que corresponde a un valor o acciona un contexto de error determinado.

Instrucción On Error GoTo… Resume

Activa una rutina de tratamiento de errores después de producirse estos o continúa la ejecución del programa.

Resume Statement

Resets error information and indicates what to execute next.

Servicio ScriptForge.Exception

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.

¡Necesitamos su ayuda!