Slices: IPrxSlices;
The Slices property returns a parent object.
Sub Main;
Var
MB: IMetabase;
Report: IPrxReport;
DIs: IPrxDataIslands;
DI: IPrxDataIsland;
Slices: IPrxSlices
i: Integer;
Begin
MB := MetabaseClass.Active;
Report := MB.ItemById("Report").Bind As IPrxReport;
DIs := Report.DataIslands;
DI := DIs.Item(0);
Slices := DI.Slice.Slices;
i := Slices.Count;
End Sub Main;
After executing the example the "i" variable contains the number of slices in the data source.
See also: