IPrxReportRecalcContext.RecalcFormulaIsland

Syntax

RecalcFormulaIsland (FormulaIsland: IPrxFormulaIsland): TriState;

Parameters

FormulaIsland. The parameter determines formula area to be used for calculation.

Description

The RecalcFormulaIsland property determines whether the specified formula area is to be calculated.

Example

Executing the example requires a regular report with the PRX_REPORT identifier.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Report: IPrxReport;
    Context: IPrxReportRecalcContext;
    FormulaIsland: IPrxFormulaIsland;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("PRX_REPORT").Edit;
    Report := MObj As IPrxReport;
    Context := Report.CreateRecalcContext;
    Context.Clear;
    FormulaIsland := Report.FormulaIslands.Item(0);
    Context.RecalcFormulaIsland(FormulaIsland) := TriState.OnOption;
    Report.RecalcC(Context);
    MObj.Save;
End Sub Button1OnClick;

After executing the example the specified report formula area is calculated.

See also:

IPrxReportRecalcContext