GetApplicationAttribute

Returns the raw value of a given application setting attribute.

Tip:

To obtain a user-readable string representing the attribute’s value, pass the raw value to TranslateApplicationAttributeForDisplay.

Syntax

<HsvMetadata>.GetApplicationAttribute(sAttributeID)

Argument

Description

sAttributeID

Integer (ByVal). The ID of the attribute. Valid values are represented by the HFMConstants enumeration tagAPPSETTING_ATTRIBS, which is described in Application Setting Attribute ID Constants.

Return Value

Variant. Returns the raw value of the attribute.

Example

The following function returns the user-readable string that represents the value of a given application setting attribute.

Function getAppAttrString(iAttrId As Long) As String
Dim cMetadata As HsvMetadata, vRet, sRet As String
'g_cSession is an HsvSession object reference
Set cMetadata = g_cSession.Metadata
vRet = cMetadata.GetApplicationAttribute(iAttrId)
sRet = g_cMetadata.TranslateApplicationAttributeForDisplay(iAttrId, vRet)
getAppAttrString = sRet
End Function