Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if DBF marked with codepage without ope
Message
 
 
À
16/09/2003 11:23:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00829442
Message ID:
00829457
Vues:
26
>Hi,
>
>I need to know if a DBF is marked with a codepage without opening it in order to avoid calling cpzero unnecesarily, and at the same time avoid the dialog appearing to user.
>
>TIA,
>
Alex,

The cpzero.prg writes new codepage into the header of the table using LLFF.
              * Now poke the codepage id into byte 29
              =FSEEK(m.fp_in,29)
              =FWRITE(m.fp_in,CHR(m.cpbyte))
You can use LLFF to read the same byte.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform