IDimLevels.Item

Syntax

Item(Index: Variant): IDimLevel;

Parameters

Index — level index.

Description

The Item property returns an object containing dictionary level index of which is passed by the Index parameter.

Example

Sub Main;

Var

MB: IMetabase;

DimModel: IDimensionModel;

Levels: IDimLevels;

Level: IDimLevel;

s: String;

Begin

MB:=MetabaseClass.Active;

DimModel:=MB.ItemById("D_TO").Bind As IDimensionModel;

Levels:=DimModel.Levels;

If Levels.Count<>0 Then

Level:=Levels.Item(0);

s:=Level.Name;

End If;

End Sub Main;

After executing the example the "s" variable contains name of the first dictionary level, if any levels are created in the dictionary. Repository object identifier: D_TO.

See also:

IDimLevels