How to create DBF

This forum is meant for questions and discussions about the X# language and tools
Post Reply
User avatar
Horst
Posts: 327
Joined: Tue Oct 13, 2015 3:27 pm

How to create DBF

Post by Horst »

Hello

Normaly i create a DBF with dbAdmin and not with x#.

I testet it now. On the screenshot TestVO.dbf is made with dbAdmin and TestDB.dbf with X#.
There is a little differenz.
Does it matter ?

Horst
Attachments
dbAdmin_vs_xsharp.jpg
User avatar
robert
Posts: 4269
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: How to create DBF

Post by robert »

Horst,
The difference that you are referring to is the 0x61 and 0x62 in position 8 (0 based).
This indicates the location where the header ends and where the data starts.
When the file has zero records (like your example) then some xbase dialects differ there with 1 byte.
But you do not have to be afraid. The DBF will work the same with both values.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
Horst
Posts: 327
Joined: Tue Oct 13, 2015 3:27 pm

Re: How to create DBF

Post by Horst »

Thanks Robert
Post Reply