char fieldType(int fieldno);

The function fieldType() returns a type of a field by index.
There are following types:
  • C - Character
  • N - Numeric
  • F - Float
  • L - Logical
  • D - Date
  • M - Memo
  • G - General
  • T - DateTime
  • I - Integer
  • Y - Currency
  • B - Double
  • @ - TimeStamp
  • O - Inverted Double
  • V - Variant
  • Q - VarBinary
  • W - Blob
  • + - Autoincrement
  • 0 - System


{
    // your code
    for (int i=0; i < dbf->fieldCount(); i++)
        printf( "%s\n", dbf->fieldType( i ) );
    // your code
}