Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbGetFieldAsFloat

Retrieve field as CTFLOAT value.

Declaration

CTDBRET ctdbGetFieldAsFloat(CTHANDLE Handle, NINT FieldNbr,

pCTFLOAT pValue)

Description

ctdbGetFieldAsFloat() retrieves field as float value. Use ctdbSetFieldAsFloat() to set field as a CTFLOAT 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 float value.

Returns

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

See also

ctdbAllocRecord(), ctdbGetFieldAsBool(), ctdbGetFieldAsSigned(), ctdbGetFieldAsUnsigned(), ctdbGetFieldAsDate(), ctdbGetFieldAsTime(), ctdbGetFieldAsMoney(), ctdbGetFieldAsDateTime(), ctdbGetFieldAsString(), ctdbGetFieldAsBlob(), ctdbSetFieldAsFloat(), ctdbGetFieldNumber()

TOCIndex