Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global count
Message
 
 
À
07/02/2012 06:44:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01534489
Message ID:
01534658
Vues:
59
It only solves problem with the header but binary data could be in a record as well in case of integer, datetime, etc fields.


>Maybe I'm wrong, but is this will accurate if the value "|" (0x7C or 124 decimal) appear in .DBF header?
>
>I think this code below will prevent that case
>
>
>lcData=FILETOSTR("timep.dbf")
>
>*!* skip until first record
>lnFirstRecordOffset = CTOBIN(SUBSTR(m.lcData, 9, 2), "2RS")
>
>lnCount=OCCURS("|", SUBSTR(m.lcData, m.lnFirstRecordOffset + 1))
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform