Version

CompileFormula Method

Compiles the specified formula. Returns an instance of Infragistics.Calculations.Engine.ICalculationFormula which represents a formula. Throws NullReferenceException if baseReference or formula is null. NOTE: This method does not add the formula to the calculation network.
Syntax
'Declaration
 
Function CompileFormula( _
   ByVal baseReference As ICalculationReference, _
   ByVal formula As String, _
   ByVal suppressSyntaxErrorEvent As Boolean _
) As ICalculationFormula

Parameters

baseReference
Base reference to use for the reference parsing. Returned formula instance will make use this reference as its base reference during parsing as well as during evaluation time to resolve relative references.
formula
The formula string.
suppressSyntaxErrorEvent
Pass in true to prevent the Syntax error event from firing.
Remarks

Returns an instance of Infragistics.Calculations.Engine.ICalculationFormula. ICalculationFormula has information on any syntax or reference errors.

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