GetCurrencyTranslationOperator

Returns the conversion operator for a given currency.

Tip:

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

Syntax

<HsvCurrencies>.GetCurrencyTranslationOperator(lCurrencyID)

Argument

Description

lCurrencyID

Long (ByVal). The currency’s ID.

Return Value

String. Returns the conversion operator.

Example

The following function takes a currency’s label and returns its conversion operator. The currency’s ID is obtained with GetCurrencyID.

Function getCurrencyOp(sCurr As String) As String
Dim cCurrencies As HsvCurrencies, lCurrID As Long
'g_cMetadata is a previously set HsvMetadata object reference
Set cCurrencies = g_cMetadata.Currencies
lCurrID = cCurrencies.GetCurrencyID(sCurr)
getCurrencyOp = cCurrencies.GetCurrencyTranslationOperator(lCurrID)
End Function