Item(Index: Variant): IUserDimAttribute;
Index - attribute index.
The Item property returns an object containing dictionary attribute. Attribute index is passed by the Index parameter.
Sub Main;
Var
MB: IMetabase;
UsDim: IUserDimension;
UsDimAts: IUserDimAttributes;
UsDimAttr: IUserDimAttribute;
s: String;
Begin
MB:=MetabaseClass.Active;
UsDim:=MB.ItemById("USER_DIM").Bind As IUserDimension;
UsDimAts:=UsDim.Attributes;
UsDimAttr:=UsDimAts.Item(UsDimAts.Count-1);
s:=UsDimAttr.Name;
End Sub Main;
After executing the example the "s" variable contains the name of the last attribute of the calculated dictionary. Dictionary identifier: USER_DIM.
See also: