IDimLevelsInstance.Item

Syntax

Item(Index: Variant): IDimLevelInstance;

Parameters

Index — index or ID of dictionary level.

Description

The Item property returns object containing dictionary elements' level.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Dimen: IDimInstance;
    Levels: IDimLevelsInstance;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    Dimen:=MB.ItemById("D_TO").Open(NullAs IDimInstance;
    Levels:=Dimen.Levels;
    i:=Levels.Item(Levels.Count-1).Elements.Count;
End Sub UserProc;

After executing the example the "i" variable shows the number of elements at the last dictionary level. Repository object identifier: D_TO.

See also:

IDimLevelsInstance