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

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