Count: Integer;
The Count property returns the number of attributes used as a base to create table dictionary index.
Sub Main;
Var
MB: IMetabase;
Dim: IStandardDimension;
DimInds: IStandardDimIndexes;
DimIndex: IStandardDimIndex;
DimIndAttrs: IStandardDimIndexAttributes;
i: Integer;
Begin
MB:=MetabaseClass.Active;
Dim:=MB.ItemById("TAB_DIM").Bind As IStandardDimension;
DimInds:=Dim.Indexes;
If DimInds.Count<>0 Then
DimIndex:=DimInds.Item(0);
DimIndAttrs:=DimIndex.Attributes;
i:=DimIndAttrs.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. Table dictionary identifier: TAB_DIM.
See also: