Returns the raw value of a given application setting attribute.
To obtain a user-readable string representing the attribute’s value, pass the raw value to TranslateApplicationAttributeForDisplay. |
<HsvMetadata>.GetApplicationAttribute(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. |
Variant. Returns the raw value of the attribute.
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