IPrxSlices.Item

Syntax

Item(Index: Integer): IPrxSlice;

Parameters

Index: Slice index.

Description

The Item property returns the object that contains the data source slice, which index has been passed by the Index parameter.

Example

Sub Main;

Var

MB: IMetabase;

Report: IPrxReport;

DtSources: IPrxDataSources;

Slices: IPrxSlices;

Slice: IPrxSlice;

s: String;

Begin

MB := MetabaseClass.Active;

Report := MB.ItemById("Report").Bind As IPrxReport;

DtSources := Report.DataSources;

Slices := DtSources.Item(0).Slices;

Slice := Slices.Item(1);

s := Slice.Name;

End Sub Main;

After executing the example the "s" variable contains the name of the second slice of the first data source of the regular report. The identifier of the regular report - Report.

See also:

IPrxSlices