IPrxSlice.Dimensions

Syntax

Dimensions: IPrxSliceDimensions;

Description

The Dimension property returns an object containing all slice dimensions.

Example

Sub Main;

Var

MB: IMetabase;

Report: IPrxReport;

DtSources: IPrxDataSources;

Slices: IPrxSlices;

Slice: IPrxSlice;

Dim: IPrxSliceDimensions;

i: Integer;

Begin

MB := MetabaseClass.Active;

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

DtSources := Report.DataSources;

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

Slice := Slices.Item(0);

Slice.Execute;

Dim := Slice.Dimensions;

i := Dim.Count;

End Sub Main;

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

See also:

IPrxSlice