IAlgorithmSettings.CheckArithmeticErrors

Syntax

CheckArithmeticErrors: Boolean;

None;

Description

The CheckArithmeticErrors property determines whether arithmetic operations used in calculation formulas.

Comments

Available values:

NOTE. Arithmetic operations can be checked if calculation formula is set correctly and calculation result may contain empty values.

For details about checking arithmetic functions see the Algorithm Calculation section.

Example

Executing the example requires that the repository contains a calculation algorithm with the ALGORITHM identifier. Various blocks are created and set up in the calculation algorithm.

Add a link to the Calculation Algorithm Core custom assembly contained in the Calculation Algorithms component, and links to the Algo, Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObjectDescriptor;
    Algo: ICalcObject;
    CalcAlgo: ICalcAlgorithm;
    Settings: IAlgorithmSettings;
Begin
    MB := MetabaseClass.Active;
    
// Get calculation algorithm
    MObj := MB.ItemById("ALGORITHM");
    Algo := CalcObjectFactory.CreateCalcObject(MObj, 
True);
    CalcAlgo := Algo 
As ICalcAlgorithm;
    
// Get and change calculation execution settings
    Settings := CalcAlgo.Settings;
    Settings.CheckArithmeticErrors := 
True;
    Settings.MultiThreadedCalc := 
False;
    Settings.PointwiseCalc := 
True;
    Settings.NonPointwiseCalcMode := MsNonPointwiseCalcMode.CalcBefore;
    Settings.SaveData := 
False;
    
// Check if there are changes in calculation period settings
    If Settings.IsDirty Then
        
// Save changes in calculation algorithm
        CalcAlgo.SaveObject;
    
End If;
End Sub UserProc;

Not provisioned.

After executing the example, calculation execution settings will be determined.

See also:

IAlgorithmSettings