SpreadsheetGear 2017
ClearError Method (IArguments)






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

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 ClearError after finishing all access to function arguments.

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

The recommended practice for overriding default error handling is to:

Requirements

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

Reference

IArguments Interface
IArguments Members