Returns the conversion operator for a given currency.
<HFMwCurrencies>.GetCurrencyTranslationOperator (lCurrencyID)
The currency ID of the currency. You can obtain a currency ID with GetCurrencyID. |
Returns a string containing the currency’s conversion operator.
The following function returns a currency’s conversion operator. The function takes a currency label, and GetCurrencyID gets the currency ID for GetCurrencyTranslationOperator.
Function getTransOp(sCurr) Dim cMetadata, cCurrencies, lCurrID 'g_cSession is an HFMwSession object reference Set cMetadata = g_cSession.metadata Set cCurrencies = cMetadata.currencies lCurrID = cCurrencies.GetCurrencyID(sCurr) getTransOp = cCurrencies.GetCurrencyTranslationOperator(lCurrID) End Function