ctdbLongToCurrency
Convert a LONG value to a CTCURRENCY value.
Declaration
CTDBRET ctdbLongToCurrency(CTSIGNED value, pCTCURRENCY pCurrency)
Description
ctdbLongToCurrency() converts a CTSIGNED (4 bytes signed integer) value to a CTCURRENCY (8 bytes signed integer) value. Use ctdbCurrencyToLong() to convert from a CTCURRENCY value to a LONG value.
Returns
ctdbLongToCurrency() returns CTDBRET_OK on success, or FairCom DB API error on failure.
The possible error associated with ctdbLongToCurrency() is:
See also
ctdbCurrencyToLong()