SpreadsheetGear 2012
EvaluateValue Method (ISheet)






The formula to evaluate.
Evaluates the specified formula and returns the result as a System.Double, System.String, System.Boolean or ValueError.
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
)
function EvaluateValue( 
    formula: System.String
): System.TObject; 
function EvaluateValue( 
   formula : System.String
) : System.Object;
System.Object* EvaluateValue( 
   System.string* 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 or ValueError.
Remarks

null will be returned if the formula is invalid.

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

Send Feedback