Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deciphering table header bytes 4-7
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Deciphering table header bytes 4-7
Divers
Thread ID:
01362880
Message ID:
01362880
Vues:
52
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform