Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code Page translation not working!!!!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00821382
Message ID:
00821697
Vues:
24
>I really don't understand how to make this work.
>I am using some characters in .PRG files which I don't want to translate when I change code page in Windows (in Regional and Language Options).
>
>I have tried CPCONVERT() and it doesn't convert at all characters, SET NOCPTRANS doesn't prevent translating from changing into code page, COMPILE my.prg AS 1252 also doesn't work...
>
>Can someone help me about this?
>
>Is it possible to prevent translating characters into code page in .PRG files in VFP 7.0?

Boban,

CPCONVERT is intended to be used with tables. When you save a PRG as 1252, all of the code gets saved as 1252. You have no option to avoid the code page translation of a program.

If you absolutely need the special characters you're speaking about, save them into a table and retrieve them from your program.

José
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform