func fieldName(_ fieldno: Int) -> String?

The function fieldName() returns a name of a field by index.
If the index is out of range then the function returns NULL.


{
    // your code
    for i = 0...dbf.fieldCount()-1 {
        print( dbf.fieldName( i ) )
    }
    // your code
}