SpreadsheetGear 2023
EvaluateValue Method (ISheet)


SpreadsheetGear Namespace > ISheet Interface : EvaluateValue Method
The formula to evaluate.
Evaluates the specified formula and returns the result as a System.Double, System.String, System.Boolean, ValueError or null if the formula is invalid or the formula evaluates to a reference to an empty cell.
Syntax
'Declaration
 
Function EvaluateValue( _
   ByVal formula As System.String _
) As System.Object
'Usage
 
Dim instance As ISheet
Dim formula As System.String
Dim value As System.Object
 
value = instance.EvaluateValue(formula)
System.object EvaluateValue( 
   System.string formula
)

Parameters

formula
The formula to evaluate.

Return Value

The result of evaluating the formula as a System.Double, System.String, System.Boolean, ValueError or null if the formula is invalid or the formula evaluates to a reference to an empty cell.
Remarks

null will be returned if the formula is invalid or the formula evaluates to a reference to an empty cell.

If the formula results in a range or an array, the top-left value of the range or array will be returned.

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

ISheet Interface
ISheet Members
EvaluateRange Method
EvaluateRanges Method
EvaluateValues Method