SpreadsheetGear
ClearError Method
See Also  Send Feedback
SpreadsheetGear.CustomFunctions Namespace > IArguments Interface : ClearError Method

Clears errors associated with the custom function which is currently being evaluated.

Syntax

Visual Basic (Declaration) 
Sub ClearError() 
C# 
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:

  • Finish all access to arguments.
  • Call ClearError.
  • Set the return value.

Requirements

Platforms: Windows 2000, Windows XP, Windows Vista, Windows Server 2003 and Windows Server 2008. SpreadsheetGear 2009 requires the Microsoft .NET Framework 2.0 and supports .NET 3.0 and .NET 3.5.

See Also

Copyright © 2003-2009 SpreadsheetGear LLC. All Rights Reserved.Help Powered by Innovasys   
SpreadsheetGear is a registered trademark of SpreadsheetGear LLC.
Microsoft, Microsoft Excel and Visual Studio are trademarks or registered trademarks of Microsoft Corporation.