Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetFieldAsCurrency

Retrieve field as a currency value.

Declaration

CTDBRET ctdbGetFieldAsCurrency(CTHANDLE Handle, NINT FieldNbr,

pCTCURRENCY pValue)

Description

ctdbGetFieldAsCurrency() retrieves field as currency value. Use ctdbSetFieldAsCurrency() to set field as a currency value.

  • Handle [in] the record handle.
  • FieldNbr [in] the field number to be retrieved. To retrieve the field number given the record handle, use ctdbGetFieldNumberByName()
  • pValue [out] the pointer to the currency value.

Returns

ctdbGetFieldAsCurrency() returns CTDBRET_OK if successful, or the c-tree error code on failure.

See also

ctdbAllocRecord(), ctdbSetFieldAsCurrency(), ctdbGetFieldAsBool(), ctdbGetFieldAsSigned(), ctdbGetFieldAsUnsigned(), ctdbGetFieldAsDate(), ctdbGetFieldAsTime(), ctdbGetFieldAsMoney(), ctdbGetFieldAsFloat(), ctdbGetFieldAsString(), ctdbGetFieldAsBlob(), ctdbSetFieldAsDateTime(), ctdbGetFieldNumber()

TOCIndex