Binary Write to DBF file
- From: kohl.mike@xxxxxxxxx
- Date: 3 Oct 2006 05:20:07 -0700
Problem: Programmically changing the record count in a dbf file
No matter what I test, nothing seems to work. This is just an example
of what I want to do.
In the dbf header there are bytes that indicate how many recorrds are
in the dbf file. for example
record count: 255
How would I convert it to hex where my byte string would = "FF 00 00
00"
if my record count was 6,233 how would I convert that to a hex number
that is spread out into 4 byes?
I really dont think my code sample would be helpful. I am just trying
to figure out the way you do this. do I convert it to a hex and then
convert hex to a byte? or byte to hex?
I hope I am not confusing anyone I am just learning the dbf file
structure and how to write bytes in bynary format. Currently everytime
I try to write to a dbf file I get the wrong byte value.
.
- Follow-Ups:
- Re: Binary Write to DBF file
- From: Cindy Winegarden
- Re: Binary Write to DBF file
- From: Karl E. Peterson
- Re: Binary Write to DBF file
- From: Jim Mack
- Re: Binary Write to DBF file
- Prev by Date: Re: Owner-Drawn Listbox w/ User Control
- Next by Date: Re: Use VB App for Tablet PC
- Previous by thread: Re: ADO and Locking
- Next by thread: Re: Binary Write to DBF file
- Index(es):
Loading