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 Main;

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 Main;

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