Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbStringToCurrency

Convert a string value to a CTCURRENCY value.

Declaration

CTDBRET ctdbStringToCurrency(pTEXT pStr, pCTCURRENCY pCurrency)

Description

ctdbStringToCurrency() converts a string value to a CTCURRENCY (8 bytes signed integer) value. Use ctdbCurrencyToString() to convert from a CTCURRENCY value to a string.

  • pStr [in] the string value.
  • pCurrency [out] the CTCURRENCY value (8 bytes integer).

Returns

ctdbStringToCurrency() returns CTDBRET_OK on success, or FairCom DB API C API error on failure.

The possible error associated with ctdbStringToCurrency() is:

  • CTDBRET_NULARG (4007): Null argument not valid in pStr

See also

ctdbCurrencyToString()

TOCIndex