Item(Index: Variant): IUserDimAttribute;
Index - attribute index.
The Item property returns an object containing calculated dictionary attribute by which the index is created.
Sub Main;
Var
MB: IMetabase;
UsDim: IUserDimension;
UsDimInds: IUserDimIndexes;
UsDimIndex: IUserDimIndex;
IndexAtr: IUserDimIndexAttributes;
UsDimAtr: IUserDimAttribute;
s: String;
Begin
MB:=MetabaseClass.Active;
UsDim:=MB.ItemById("USER_DIM").Bind As IUserDimension;
UsDimInds:=UsDim.Indexes;
If UsDimInds.Count<>0 Then
UsDimIndex:=UsDimInds.Item(0);
IndexAtr:=UsDimIndex.Attributes;
UsDimAtr:=IndexAtr.Item(0);
s:=UsDimAtr.Name;
End If;
End Sub Main;
After executing the example the "s" variable contains the name of the first attribute used the base to create first dictionary index. Calculated dictionary identifier: USER_DIM.
See also: