IPrxDataIslands.Remove

Syntax

Remove(Index: Integer): Boolean;

Parameters

Index - data area index.

Description

The Remove method removes a data area based on its index. Index of a data area is passed using the Index parameter.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Report: IPrxReport;

DIs: IPrxDataIslands;

s: String;

Begin

MB := MetabaseClass.Active;

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

Report := MObj As IPrxReport;

DIs := Report.DataIslands;

If DIs.Remove(DIs.Count-1) 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 last data area of the regular report has been successfully deleted. The identifier of the regular report - Report.

See also:

IPrxDataIslands