Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbSetFieldType

Sets the field type

Declaration

CTDBRET ctdbSetFieldType(CTHANDLE Handle, CTDBTYPE type);

Description

ctdbSetFieldType() sets the field type. Use ctdbGetFieldType() to retrieve the field type.

  • Handle [in] the Field Handle.
  • type [in] the Field Type. Available types are listed in the left-hand column ("c-treeDB API Field Type") in Field Types.

Returns

ctdbSetFieldType() returns CTDBRET_OK on success, or a c-treeDB API C API error code on failure.

See also

ctdbGetFieldType()

TOCIndex