SpreadsheetGear 2010
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

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Copyright © 2003-2010 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.