function fieldName(fieldno : Integer): String;
The function fieldName() returns a name of a field by index.
If the index is out of range then the function returns NULL.
begin
// your code
for i := 0 to dbf.fieldCount-1 do
writeln( dbf.fieldName( i ) );
// your code
end;