ctdbGetFieldByName
Retrieve a field handle from a table, based on the field name.
Declaration
CTHANDLE ctdbGetFieldByName(CTHANDLE Handle, pTEXT FieldName)
Description
ctdbGetFieldByName() retrieves a field handle from a table, based on the field name. To retrieve a field handle from a table, based on the field number, use ctdbGetField(). To retrieve the field number, use ctdbGetFieldNumber().
Returns
ctdbGetFieldByName() returns the field handle or NULL on error.
See also
ctdbAllocTable(), ctdbGetField(), ctdbGetFieldNumber()