Version

Calculate Method

Quickly calculates the specified formula and returns the result as a string.
Syntax
'Declaration
 
Public Function Calculate( _
   ByVal formula As String _
) As UltraCalcValue
public UltraCalcValue Calculate( 
   string formula
)

Parameters

formula
Formula to calculate.

Return Value

The result of the formula.
Exceptions
ExceptionDescription
Infragistics.UltraCalcExceptionThrown when the formula contains a syntax error.
Remarks

Calculate does not ensure that all dependents of the specified formula are up-to-date and calculated. Applications that require assurance of the currency of all references needed to call ReCalc before calling this method.

This function returns an exception if the formula contains a syntax error. Any other kinds of non-fatal errors are returned as an instance of UltraCalcValue that contains information about the error that has transpired.

Requirements

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