CX_SYSTEM_OBJECT::CreateCurrencyRate
Description:
This function creates an object of type CX_CURRENCY_RATE. Conversions are performed with a precision of 5 digits.
Code example:
"$" 1.03212 "EUR" 6 SystemObject Call(CreateCurrencyRate)
Creates a currency conversion object with the exchange rate 1.03212€/$, where you can convert from € to $ and vice versa (see conversion types). The function leaves a CX_VALUE_PER in memory, which is not released by the garbage collection => please call it only if needed and reuse once created CX_CURRENCY_RATE objects as often as possible.
This object is cleared away from the garbage collection if it is not stored in a variable. This also applies if it is logged on to the system via AddOverwriteRate, for example!
Stack | Position | Object type | Brief description |
---|---|---|---|
Stack(IN) | Top | INTEGER | - |
Top 1 | STRING | - | |
top 2 | OBJECT | - | |
top 3 | STRING | - | |
Stack(OUT) | Top | CX_CURRENCY_RATE | - |