IDimElements.AttributeValueO

Syntax

AttributeValueO:(Element: Integer; Attribute: IDimAttributeInstance): Variant;

Parameters

Element - element index.

Attribute - attribute which value is to be obtained.

Description

The AttributeValueO property returns value of element attribute. Element index and attribute are passed by the Element and Attribute parameters respectively.

Example

Executing the example requires that the repository contains a dictionary with the D_TO identifier.

Sub Main;

Var

MB: IMetabase;

Dimen: IDimInstance;

Elem: IDimElements;

v: Variant;

Begin

MB := MetabaseClass.Active;

Dimen := MB.ItemById("D_TO").Open(Null) As IDimInstance;

Elem := Dimen.Elements;

v := Elem.AttributeValueO(0, Dimen.Attributes.Item(0));

End Sub Main;

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

See also:

IDimElements