IDimAttributeInstance.Value

Syntax

Value(Element: Integer): Variant;

Parameters

Element — index of dictionary element value of which should be obtained.

Description

The Value property returns value of element attribute. Element index is passed by the Element parameter.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Dimen: IDimInstance;
    Attrs: IDimAttributesInstance;
    Attr: IDimAttributeInstance;
    v: Variant;
Begin
    MB:=MetabaseClass.Active;
    Dimen:=MB.ItemById("D_TO").Open(NullAs IDimInstance;
    Attrs:=Dimen.Attributes;
    Attr:=Attrs.Item(0);
    v:=Attr.Value(Dimen.Elements.Count-1);
End Sub UserProc;

After executing the example the "v" variable contains value of the first attribute of the last dictionary element.

See also:

IDimAttributeInstance