IPrxControl.AutoRecalc

Syntax

AutoRecalc: Boolean;

Description

The AutoRecalc property determines whether the sheet or the report is to be calculated when the control value changes. If the property is set to True, all sheets using a control are recalculated when the value of this control is changed. If the property is set to False, the sheets are not recalculated.

The default property value is True.

Example

The following example assumes that there is the Report object with the IPrxReport type.

Sub UserProc;
Var
    Report: IPrxReport;
    Contrls: IPrxControls;
    Contrl: IPrxControl;
Begin
    Contrls := Report.Controls;
    Contrl := Contrls.Item(
0);
    Contrl.AutoRecalc := 
False;
    MObj.Save;
End Sub UserProc;

After executing the example the first control of the regular report has the Calculate Report When the Value is Changed option enabled.

See also:

IPrxControl