ctdbGetFieldAsString
Retrieve field as CTSTRING value.
Declaration
CTDBRET ctdbGetFieldAsString(CTHANDLE Handle, NINT FieldNbr,
CTSTRING pValue, VRLEN size)
Description
ctdbGetFieldAsString() retrieves field as CTSTRING value. Use ctdbSetFieldAsString() to set field as a CTSTRING value.
Returns
ctdbGetFieldAsString() returns CTDBRET_OK if successful, or the c-tree error code on failure.
Calling this function against a NULL CTDATE or CTTIMESTAMP field will return the following error codes:
Calling this function against a NULL field of other types will return CTDBRET_OK and populate the pValue parameter with the following values:
See also
ctdbAllocRecord(), ctdbGetFieldAsBool(), ctdbGetFieldAsSigned(), ctdbGetFieldAsUnsigned(), ctdbGetFieldAsDate(), ctdbGetFieldAsTime(), ctdbGetFieldAsMoney(), ctdbGetFieldAsFloat(), ctdbGetFieldAsDateTime(), ctdbGetFieldAsBlob(), ctdbSetFieldAsString(), ctdbGetFieldNumber()