Version

CalculateFormula(String) Method

Calculates the specified formula and returns the value.
Syntax
'Declaration
 
Public Overloads Function CalculateFormula( _
   ByVal formula As String _
) As CalculationValue
public CalculationValue CalculateFormula( 
   string formula
)

Parameters

formula
Formula to calculate.

Return Value

The result of the formula.
Remarks

The Calculate method allows you to calculate a formula once without creating a NamedReference.

This method does not ensure that any dependants of the specified formula are calculated. When using a CalculationFrequency of Asynchronous, you should call the PerformCalculations method before calling this method.

This method throws an exception if the formula has a syntax error. Any other kind of error is returned as an instance of Infragistics.Calculations.Engine.CalculationValue that represents the error that occurred.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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