Funcions d'error

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

Converteix una expressi贸 de cadena o una expressi贸 num猫rica en una expressi贸 de variant del subtipus "Error".

Funci贸 Erl

Torna el nombre de l铆nia on s'ha produ茂t un error durant l'execuci贸 del programa.

Funci贸 Err

Torna un codi d'error que identifica l'error que es va produir durant l'execuci贸 del programa.

Objecte Err [VBA]

Use VBA Err object to raise or handle runtime errors.

IsError Funci贸

Prova si una variable cont茅 un valor erroni.

Funci贸 Error

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

Expressi贸 On Error GoTo 鈥 Resume

Habilita una rutina de gesti贸 d'errors despr茅s que es produ茂sca un error, o continua l'execuci贸 del programa.

Repr茅n la sent猫ncia

Resets error information and indicates what to execute next.

Servei 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.

Ens cal la vostra ajuda!