GetCurrencyRate

ACCPAC Common Controls

AccpacSession.GetCurrencyRate

Creates and returns an AccpacCurrrencyRate object that represents the exchange rate between the specified home and source currency codes of the specified rate type on a certain date.

Function GetCurrencyRate(
  HomeCurrencyCode As String,
  RateType As String,
  SourceCurrencyCode As String,
  Date As Date) As AccpacCurrrencyRate

Parameters

HomeCurrencyCode

[in] the home currency code

RateType

[in] the currency rate type code

SourceCurrencyCode

[in] the source currency code

Date

[in] the date for which the exchange rate is retrieved

Return Value

Returns an AccpacCurrrencyRate object that contains details of the exchange rate.

Remarks

The home currency is also referred to as the functional currency.