- (NSInteger) indexOfField: (NSString*) fieldname;

The function indexOfField() returns a number of field with a particular name.
If there is no field with such name, it returns -1.


{
    // your code
    NSInteger field = [dbf indexOfField:@"FIRSTNAME"];
    if ( field >= 0 )
    {
        // your code
    }
}