IPrxSliceDimensions.Count

Syntax

Count: Integer;

Description

The Count property returns the number of slice dimensions.

Example

Sub Main;

Var

MB: IMetabase;

Report: IPrxReport;

DtSources: IPrxDataSources;

Slices: IPrxSlices;

SliceDims: IPrxSliceDimensions;

i: Integer;

Begin

MB := MetabaseClass.Active;

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

DtSources := Report.DataSources;

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

SliceDims := Slices.Item(0).Dimensions;

i := SliceDim.Count;

End Sub Main;

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

See also:

IPrxSliceDimensions