IUserDimIndexes.Item

Syntax

Item(Index: Variant): IUserDimIndex;

Parameters

Index — index number.

Description

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

Example

Sub Main;

Var

MB: IMetabase;

UsDim: IUserDimension;

UsDimInds: IUserDimIndexes;

UsDimIndex: IUserDimIndex;

s: String;

Begin

MB:=MetabaseClass.Active;

UsDim:=MB.ItemById("USER_DIM").Bind As IUserDimension;

UsDimInds:=UsDim.Indexes;

If UsDimInds.Count<>0 Then

UsDimIndex:=UsDimInds.Item(0);

s:=UsDimIndex.Name;

End If;

End Sub Main;

After executing the example the "s" variable contains the name of the first dictionary index, if it exists. Calculated dictionary identifier: USER_DIM.

See also:

IUserDimIndexes