IDimIndexes.Item

Syntax

Item(Index: Variant): IDimIndex;

Parameters

Index — index number.

Description

The Item property returns structure of dictionary index.

Example

Sub Main;

Var

MB: IMetabase;

DimModel: IDimensionModel;

Indexs: IDimIndexes;

Index: IDimIndex;

s: String;

Begin

MB:=MetabaseClass.Active;

DimModel:=MB.ItemById("D_TO").Bind As IDimensionModel;

Indexs:=DimModel.Indexes;

If Indexs.Count<>0 Then

Index:=Indexs.Item(0);

s:=Index.Id;

End If;

End Sub Main;

After executing the example the "s" variable shows identifier of the first dictionary index if there is such. Repository object identifier: D_TO.

See also:

IDimIndexes