IPrxSlices.Count

Syntax

Count: Integer;

Description

The Count property returns the number of slices of the data source of the regular report.

Example

Sub Main;

Var

MB: IMetabase;

Report: IPrxReport;

DtSources: IPrxDataSources;

Slices: IPrxSlices;

i: Integer;

Begin

MB := MetabaseClass.Active;

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

DtSources := Report.DataSources;

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

i := Slices.Count;

End Sub Main;

After executing the example the "i" variable contains the number of slices of the first data source of the regular report. The identifier of the regular report - Report.

See also:

IPrxSlices