func fieldLength(_ fieldno: Int) -> Int

The function fieldLength() returns a length of a field by index.
It returns 0 if index is out of range.


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