Error function (LotusScript® Language)

Returns an error message for either a specified error number or the current error.

Syntax

Error[$] [ ( errNumber ) ]

Elements

errNumber

A numeric expression whose value is an error number. If no errNumber is specified, LotusScript® returns the message for the current (most recent) error.

Return value

Error returns a Variant, and Error$ returns a String. If no errNumber is specified, and there is no current error, the function returns the empty string ("").

You can call the Error function with no arguments as either Error or Error( ). You can call the Error$ function with no arguments as either Error$ or Error$( ).

Example