IDimIndexesInstance.Item

Syntax

Item(Index: Variant): IDimIndexInstance;

Parameters

Index — index number.

Description

The Item property returns an object containing dictionary index.

Example

Sub Main;

Var

MB: IMetabase;

Dimen: IDimInstance;

Indxs: IDimIndexesInstance;

i: Integer;

Begin

MB:=MetabaseClass.Active;

Dimen:=MB.ItemById("D_TO").Open(Null) As IDimInstance;

Indxs:=Dimen.Indexes;

If Indxs.Count<>0 Then

i:=Indxs.Item(0).Index.Attributes.Count;

End If;

End Sub Main;

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