Attribute(Index: Integer): IDimAttribute;
Index — dictionary attribute index.
The Attribute property returns structure of the attribute by which the search can be carried out.
Sub UserProc;
Var
MB: IMetabase;
Dimen: IDimInstance;
IndxsInst: IDimIndexesInstance;
IndexInst: IDimIndexInstance;
InstLook: IDimIndexInstanceLookup;
s: String;
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;
s:=InstLook.Attribute(0).Name;
End If;
End Sub UserProc;
After executing the example an object is created to find elements in the dictionary, and the "s" variable shows name of the first index attribute by which the search can be carried out.
See also: