Recent

Author Topic: New float fields contain 6E-154  (Read 9861 times)

korba812

  • Sr. Member
  • ****
  • Posts: 390
Re: New float fields contain 6E-154
« Reply #30 on: October 22, 2021, 10:54:18 pm »
Is not so bad. Dbf file header has information that makes it possible to 'guess' what we are dealing with. As you noticed, the TDbf component has the "TableLevel" property, which allows it to be (more or less) compatible with the various versions. Patch I attached only affects files compatible with "FoxPro" and "Visual FoxPro" versions.

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: New float fields contain 6E-154
« Reply #31 on: October 23, 2021, 10:15:08 am »
Hi!

The first byte in the dBase file contains the version information:

byte 0    1 byte    Valid dBASE for Windows table file, bits 0-2 indicate version number: 3 for dBASE Level 5, 4 for dBASE Level 7.

Bit 3 and bit 7 indicate presence of a dBASE IV or dBASE for Windows memo file; bits 4-6 indicate the presence of a dBASE IV SQL table; bit 7 indicates the presence of any .DBT memo file (either a dBASE III PLUS type or a dBASE IV or dBASE for Windows memo file).


Now get the info how Foxpro and other clones treats this byte. Then you got what is needd.

Winni

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 1313
Re: New float fields contain 6E-154
« Reply #32 on: October 25, 2021, 09:46:47 am »
I added it to the bugtracker.

 

TinyPortal © 2005-2018