Show contents 

Dimensions > Dimensions Assembly Interfaces > IUserDimLevels > IUserDimLevels.Item

IUserDimLevels.Item

Syntax

Item(Index: Variant): IUserDimLevel;

Parameters

Index. Level index.

Description

The Item property returns an object containing level of calculated dictionary.

Example

Sub UserProc;
Var
    MB: IMetabase;
    UsDim: IUserDimension;
    UsDimLevs: IUserDimLevels;
    UsDimLevel: IUserDimLevel;
    s: String;
Begin
    MB:=MetabaseClass.Active;
    UsDim:=MB.ItemById("USER_DIM").Bind As IUserDimension;
    UsDimLevs:=UsDim.Levels;
    If UsDimLevs.Count<>0 Then
        UsDimLevel:=UsDimLevs.Item(0);
        s:=UsDimLevel.Name;
    End If;
End Sub UserProc;

After executing the example the "s" variable contains the name of the first level of the calculated dictionary if any level is created. Calculated dictionary identifier - USER_DIM.

See also:

IUserDimLevels