Return Value The pointer to CRField object for the specified field.
Parameters
index
Zero-based index number of the field.
name
Name of the field.
Description
Call this member function to determine if a specified field component exists in the dataset. If findField finds a field with a matching name, it returns the CRField object for the specified field. Otherwise it returns NULL.
findField is a useful function to call prior to calling other dataset functions, such as field, that require a valid field name as a parameter.
Example
CRString address;
if (dataset1.findField("Address"))
address = dataset1.findField("Address")->getString();
See Also