GetCurrencyTranslationOperator

Returns the conversion operator for a given currency.

Tip:

The operator is specified with the currency’s TranslationOperator attribute.

Syntax

<HFMwCurrencies>.GetCurrencyTranslationOperator (lCurrencyID)

Argument

Description

lCurrencyID

The currency ID of the currency.

Tip:

You can obtain a currency ID with GetCurrencyID.

Input argument. Long subtype.

Return Value

Returns a string containing the currency’s conversion operator.

Example

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