This project is read-only.
1
Vote

Integer read as binary string

description

Column of type Integer isn't decoded and read correctly (reads as binary string).
Fixed by modifying indexed property getter code in DbfRecord class:
get
  { 
    DbfColumn ocol = mHeader[nColIndex];
      if(ocol.ColumnType == DbfColumn.DbfColumnType.Integer)
      {
          Buffer.BlockCopy(mData, ocol.DataAddress, mTempIntVal, 0, 4);
          return mTempIntVal[0].ToString();
      }
    return new string(ASCIIEncoder.GetChars(mData, ocol.DataAddress, ocol.Length));
  }

comments