IDimIndexesInstance.Item

Syntax

Item(Index: Variant): IDimIndexInstance;

Parameters

Index — index number.

Description

The Item property returns an object containing dictionary index.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Dimen: IDimInstance;
    Indxs: IDimIndexesInstance;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    Dimen:=MB.ItemById("D_TO").Open(NullAs IDimInstance;
    Indxs:=Dimen.Indexes;
    If Indxs.Count<>0 Then
        i:=Indxs.Item(0).Index.Attributes.Count;
    End If;
End Sub UserProc;

After executing the example the "i" variable shows the number of attributes, by which the first dictionary index is created. Repository object identifier: D_TO.

See also:

IDimIndexesInstance