Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetFieldNbr

Retrieve the field number in the table fields list

Declaration

NINT ctdbGetFieldNbr(CTHANDLE Handle)

Description

ctdbGetFieldNbr() retrieves the field number in the table fields list, given a field handle. Use ctdbGetFieldNumber() to retrieve the field number given the field name. Use ctdbGetFieldNumberByName() to retrieve the field number given the record handle.

  • Handle [in] the Field Handle.

Returns

ctdbGetFieldNbr() returns the field number, or -1 on failure

See also

ctdbAllocField(), ctdbSetFieldProperties(), ctdbGetFieldNumber(), ctdbGetFieldNumberByName(), ctdbGetFieldLength(), ctdbGetFieldName()

TOCIndex