Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbMoneyToNumber

Convert a CTMONEY value to a CTNUMBER.

Declaration

CTDBRET ctdbMoneyToNumber(CTMONEY money, pCTNUMBER pNumber)

Description

ctdbMoneyToNumber() converts a CTMONEY value to a CTNUMBER. Use ctdbNumberToMoney() to convert from a CTNUMBER to CTMONEY.

  • money [in] the CTMONEY value.
  • pNumber[out] pointer to CTNUMBER.

Returns

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

The possible error associated with ctdbMoneyToLong() is:

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

See also

ctdbNumberToMoney()

TOCIndex