Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic


Check if the contents of a field are null.


CTBOOL ctdbIsNullField(CTHANDLE Handle, NINT FieldNbr)


ctdbIsNullField() checks to see if the contents of a field are null.

  • Handle [in] the record handle.
  • FieldNbr [in] the field number.

Note: this function looks at a single field in a single record/row.


ctdbIsNullField() returns YES if the field is NULL, or NO if the field is not NULL.

See also

ctdbHasNullFieldSupport(), ctdbGetFieldNullFlag(), ctdbClearField

To read/write the "NOT NULL" attribute of a column in the SQL layer, see ctdbGetFieldNullFlag and, see ctdbSetFieldNullFlag