Count: Integer;
The Count property returns the number of attributes included in dictionary sorting list.
Sub Main;
Var
MB: IMetabase;
DimModel: IDimensionModel;
DimAttrs: IDimAttributes;
DimOrd: IDimOrders;
i: Integer;
Begin
MB := MetabaseClass.Active;
DimModel := MB.ItemById("D_TO").Bind As IDimensionModel;
DimAttrs := DimModel.Attributes;
DimOrd := DimAttrs.Orders;
i := DimOrd.Count;
End Sub Main;
After executing the example the "i" variable contains the number of attributes by which the dictionary is sorted.
See also: