IPrxFormulaIslands.Remove

Syntax

Remove(Index: Integer): Boolean;

Parameters

Index - index of formula area.

Description

The Remove property removes the formula area, which index is passed by the Index parameter.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Report: IPrxReport;

FormulaIs: IPrxFormulaIslands;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemById("Report").Edit;

Report := MObj As IPrxReport;

FormulaIs := Report.FormulaIslands;

If FormulaIs.Remove(0) Then

s:="Remove";

Else

s:="Don't remove";

End If;

MObj.Save;

End Sub Main;

After executing the example the "s" variable contains "Remove" if the first formula area of the regular report has been successfully removed. The identifier of the regular report - Report.

See also:

IPrxFormulaIslands