GetAttributeValue

Returns the value of a given member’s metadata attribute.

Syntax

<IHsvTreeInfo>.GetAttributeValue lItemID, iAttribute, vValue

Argument

Description

lItemID

Long (ByVal). The member ID of the dimension member.

iAttribute

Integer (ByVal). The metadata attribute for which to return the value. Valid values are represented by the HFMConstants type library constants listed in the following topics:

vValue

Variant. Returns the attribute’s value.

Example

The following function returns the UserDefined1 attribute of a given Scenario dimension member.

Note:

You can also get this attribute with HsvScenarios.GetUserDefined1.

Function getScenUserDef1(lId As Long) As Variant
Dim cIHsvTreeInfo As IHsvTreeInfo, vRet As Variant
Set cIHsvTreeInfo = m_cMetadata.Scenarios
cIHsvTreeInfo.GetAttributeValue lId, ATTRIB_SCENARIO_USERDEF1, _
   vRet
getScenUserDef1 = vRet
End Function