ICubeModelDimensions.Item

Syntax

Item(Index: Integer): IDimensionModel;

Parameters

Index is an index of cube dimension.

Description

The Item property determines a repository dictionary used as a cube dimension.

Example

Executing the example requires a cube with the CUBE_1 identifier.

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

CuModel: ICubeModel;

DiModel: ICubeModelDimensions;

i: Integer;

Begin

MB := MetabaseClass.Active;

MObj := Mb.ItemById("CUBE_1").Bind;

CuModel := MObj As ICubeModel;

DiModel := CuModel.Destinations.DefaultDestination.Dimensions;

For i := 0 To DiModel.Count - 1 Do

Debug.WriteLine((DiModel.Item(i) As IMetabaseObject).Id);

End For;

End Sub Main;

After executing the example the console window displays identifiers of all dictionaries that are dimensions in the CUBE_1 cube.

See also:

ICubeModelDimensions