Remove(Index: Integer): Boolean;
Index - an index of a layout row.
The Remove method removes a layout row. If the removal is successful, the method returns True, otherwise it returns False.
Sub Main;
Var
MB: IMetabase;
MObj : IMetabaseObject;
Report : IPrxReport;
TabIs : IPrxTableIslands;
TI : IPrxTableIsland;
Layout : IPrxTableIslandLayout;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("Report").Edit;
Report := MObj As IPrxReport;
TabIs := Report.TableIslands;
TI := TabIs.Item(0);
TI := TI.Edit;
Layout := TI.Layout;
If Layout.Remove(0) Then
TI.Save;
Else
TI.Revert;
End If;
MObj.Save;
End Sub Main;
On executing the example, if the specified layout row is successfully removed, the edited relational data area is saved, otherwise it is not. Report - identifier of a regular report.
See also: