IDimIndex.Attributes

Syntax

Attributes: IDimIndexAttributes;

Description

The Attributes property returns a collection of attributes, by which the index is created.

Example

Sub Main;

Var

MB: IMetabase;

DimModel: IDimensionModel;

Indexs: IDimIndexes;

Index: IDimIndex;

IndAtr: IDimIndexAttributes;

i: Integer;

Begin

MB:=MetabaseClass.Active;

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

Indexs:=DimModel.Indexes;

If Indexs.Count<>0 Then

Index:=Indexs.Item(0);

IndAtr:=Index.Attributes;

i:=IndAtr.Count;

End If;

End Sub Main;

After executing the example the "i" variable shows the number of attributes in the first dictionary index if this index is created. Repository object identifier: D_TO.

See also:

IDimIndex