function fieldCount: Integer;

Function fieldCount() returns a number of fields in a dbf file.


begin
    // your code
    dbf.writeln( 'Fieldcount = ' + intToStr( dbf.fieldCount ) );
    // your code
end;