AttributeCount: Integer;
The AttributeCount property returns the number of attributes by which the search can be carried out.
Sub UserProc;
Var
MB: IMetabase;
Dimen: IDimInstance;
IndxsInst: IDimIndexesInstance;
IndexInst: IDimIndexInstance;
InstLook: IDimIndexInstanceLookup;
i: Integer;
Begin
MB:=MetabaseClass.Active;
Dimen:=MB.ItemById("D_TO").Open(Null) As IDimInstance;
IndxsInst:=Dimen.Indexes;
If IndxsInst.Count<>0 Then
IndexInst:=IndxsInst.Item(0);
InstLook:=IndexInst.CreateDimIndexLookup;
i:=InstLook.AttributeCount;
End If;
End Sub UserProc;
After executing the example an object is created to find dictionary elements, and the "i" variable contains the number of index attribute by which the search is carried out.
See also: