SpreadsheetGear 2023
ClearError Method (IArguments)

SpreadsheetGear.CustomFunctions Namespace > IArguments Interface : ClearError Method
Clears errors associated with the custom function which is currently being evaluated.
Sub ClearError() 
Dim instance As IArguments
void ClearError()

Typically, the first error seen in any argument to a custom function will be the result of the custom function. To override this behavior, call IArguments.ClearError after finishing all access to function arguments.

Note: Accessing function arguments after calling IArguments.ClearError will result in undefined behavior.

The recommended practice for overriding default error handling is to:


Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also


IArguments Interface
IArguments Members