Value(Element: Integer): Variant;
Element — index of dictionary element value of which should be obtained.
The Value property returns value of element attribute. Element index is passed by the Element parameter.
Sub Main;
Var
MB: IMetabase;
Dimen: IDimInstance;
Attrs: IDimAttributesInstance;
Attr: IDimAttributeInstance;
v: Variant;
Begin
MB:=MetabaseClass.Active;
Dimen:=MB.ItemById("D_TO").Open(Null) As IDimInstance;
Attrs:=Dimen.Attributes;
Attr:=Attrs.Item(0);
v:=Attr.Value(Dimen.Elements.Count-1);
End Sub Main;
After executing the example the "v" variable contains value of the first attribute of the last dictionary element.
See also: