Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deciphering table header bytes 4-7
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Deciphering table header bytes 4-7
Miscellaneous
Thread ID:
01362880
Message ID:
01362880
Views:
54
Hi kids!

I'm trying to figure out how to decipher table header bytes 4-7 (which according to the VFP help file) contains the number of records in the table file.

Here's some data points:
records      byte 4  5  6  7 
-----------------------------
      3           6- 3- 0- 0
     40          22-40- 0- 0
     18          11-18- 0- 0
 217397          18-53-81- 3
Here's the code I used:
m.lcMyDBFFile = FILETOSTR("c:\whatever.dbf")

m.lcString = TRANSFORM(ASC(SUBSTR(m.lcMyDBFFile,4,1))) + '-' ;
				+ TRANSFORM(ASC(SUBSTR(m.lcMyDBFFile,5,1))) + '-' ;
				+ TRANSFORM(ASC(SUBSTR(m.lcMyDBFFile,6,1))) + '-' ;
				+ TRANSFORM(ASC(SUBSTR(m.lcMyDBFFile,7,1)))
_cliptext = m.lcString
Got any ideas??

Hugh
Microsoft hears loudest what the VFP community says about Visual FoxPro by looking at the bottom line!

Support the product. Buy the latest version!

Hugh Winters @ WorldData 408-512-1131
Next
Reply
Map
View

Click here to load this message in the networking platform