Remove(Index: Integer): Boolean;
Index - group index.
The Remove method removes groups based on the specified index.
Sub Main;
Var
MB: IMetabase;
MObj : IMetabaseObject;
Report : IPrxReport;
TabIs : IPrxTableIslands;
TI : IPrxTableIsland;
Grs : IPrxTableIslandGroupings;
Gr : IPrxTableIslandGrouping;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("Report").Edit;
Report := MObj As IPrxReport;
TabIs := Report.TableIslands;
TI := TabIs.Item(0);
TI := Ti.Edit;
Grs := TI.Groupings;
If Grs.Remove(0) Then
Debug.WriteLine("Yes");
Else
Debug.WriteLine("No");
End If;
TI.Save;
MObj.Save;
End Sub main;
After executing the example the selected group is deleted and the console window displays an appropriate message. Report - identifier of the regular report, which sheet contains a relational data area.
See also: