IPrxTableIslands.Remove

Syntax

Remove(Index: Integer): Boolean;

Parameters

Index - index of a relational data area.

Description

The Remove method removes relational data area by the specified index. If the removal is successful, the method returns True, otherwise it returns False.

Example

Sub Main;

Var

MB: IMetabase;

MObj : IMetabaseObject;

Report : IPrxReport;

TabIs : IPrxTableIslands;

Begin

MB := MetabaseClass.Active;

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

Report := MObj As IPrxReport;

TabIs := Report.TableIslands;

If TabIs.Remove(0) Then

Debug.WriteLine("Yes");

Else

Debug.WriteLine("No");

End If;

MObj.Save;

End Sub Main;

After executing the example the relational data area is removed, and the console window displays an appropriate message. Report - identifier of a regular report.

See also:

IPrxTableIslands