See Also

Function Class  | Function Members

Requirements

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

Language

Visual Basic

C#

C++

C++/CLI

Show All

arguments
Provides access to the arguments to the custom function.
result
Assign the result of the custom function to result.
See Also Languages SpreadsheetGear The Performance Spreadsheet Component Company 

Evaluate Method

SpreadsheetGear.CustomFunctions Namespace > Function Class : Evaluate Method

Evaluates a custom function with the specified arguments.

[Visual Basic]
Public Overridable MustOverride Sub Evaluate( _    ByVal arguments As IArguments, _    ByVal result As IValue _ )
[C#]
public virtual abstract void Evaluate(    IArguments arguments,    IValue result );
[C++]
public: virtual abstract void Evaluate(    IArguments* arguments,    IValue* result )
[C++/CLI]
public: virtual abstract void Evaluate(    IArguments^ arguments,    IValue^ result )

Parameters

arguments
Provides access to the arguments to the custom function.
result
Assign the result of the custom function to result.

Remarks

The implementation of this method must be thread safe, and must not use any API in the workbook set which is being calculated. All access to cells must be through arguments. No references to objects passed to, or acquired during the execution of this method should be used after this method completes execution.

If an exception is thrown during custom function evaluation, the custom function will return ValueError.Name.

Requirements

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

See Also

Function Class  | Function Members

 

 


See our live Excel Reporting, Excel Charting, Excel to DataGrid and Excel Calculation Samples.

Copyright © 2003-2007 SpreadsheetGear LLC. All Rights Reserved.

SpreadsheetGear and Spreadsheet Gear are trademarks of SpreadsheetGear LLC.