Count: Integer;
The Count property returns the number of attributes used as a base to create dictionary index.
Sub Main;
Var
MB: IMetabase;
DimModel: IDimensionModel;
Index: IDimIndex;
IndAtr: IDimIndexAttributes;
i: Integer;
Begin
MB:=MetabaseClass.Active;
DimModel:=MB.ItemById("D_TO").Bind As IDimensionModel;
Index:=DimModel.Indexes.Item(0);
If Index<>Null Then
IndAtr:=Index.Attributes;
i:=IndAtr.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: