Returns arrays containing the IDs, labels, and descriptions of the application’s currencies, with the option to return only those currencies for which the DisplayInICT attribute is enabled. The arrays have a one-to-one correspondence.
<HFMwCurrencies>.EnumCurrencies (vbICTOnly, lFlagsRequestedInfo, pvaravarlCurrencyIDs, pvaravarbstrCurrencyLabels, pvaravarbstrCurrencyDescriptions)
A flag that specifies whether to filter currencies for which the DisplayInICT attribute is enabled. Pass TRUE to filter currencies, FALSE to return all currencies. | |
A bitmask that specifies the type of information to return. Valid values for the bits are represented by the HFMConstants type library constants listed in Metadata Information Constants. | |
If WEBOM_METADATA_INFO_ID or WEBOM_METADATA_INFO_ALL is included in the lFlagsRequestedInfo argument’s bitmask, this returns an array containing the currencies’ IDs. | |
If WEBOM_METADATA_INFO_LABEL or WEBOM_METADATA_INFO_ALL is included in the lFlagsRequestedInfo argument’s bitmask, this returns an array containing the currencies’ labels. | |
If WEBOM_METADATA_INFO_DESCRIPTION or WEBOM_METADATA_INFO_ALL is included in the lFlagsRequestedInfo argument’s bitmask, this returns an array containing the currencies’ descriptions. |
Returns a count of the currencies that are returned by this method.
The following function returns the labels of all the currencies in an application.
Function getCurrencyLabels() Dim cMetadata, cCurrencies, lCnt, vaIDs, vaLabels, vaDescs 'g_cSession is an HFMwSession object reference Set cMetadata = g_cSession.metadata Set cCurrencies = cMetadata.currencies cCurrencies.EnumCurrencies true, WEBOM_METADATA_INFO_LABEL, vaIDs, _ vaLabels, vaDescs getCurrencyLabels = vaLabels End Function