Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deciphering table header bytes 4-7
Message
De
19/11/2008 13:50:52
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01362880
Message ID:
01362887
Vues:
9
Check http://support.microsoft.com/kb/263902

>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform