Calculating a formula

In this example, the Calc method, is applied to a formula.


Dim oCalc as Object = ObjMethod("FORMULA", "", "ObjectMethod", "CALC", 
"mode=0;calcflags=0")
Parameter Flag Description
Mode 0 Not currently used by the system. The value is 0.
CalcFlags 0=As Necessary First-level calculation. Conditional. A formula recalculation is determined by the system. This occurs when there has been a change in ingredients or parameter values. The calc is performed only if there is a change.
CalcFlags 1=CostOnly First-level calculation.

Roll up costs only

CalcFlags 2=ForceAll First-level calculation. Unconditional. Calculation occurs regardless of whether there are changes to the object.
CalcFlags 4=CalcAll All-level calculation. Calculate all of the sub-formulas before calculating the selected formula.