Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display chr(21)
Message
 
À
09/11/2001 14:27:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00579731
Message ID:
00580152
Vues:
19
>>
>>No, I don't think so either. I think it's the character mapping of the font being used. For example, if you use Arial, Tahoma, or MS Sans Serif, CHR(167) prints as §. However, if you use FoxFont, it doesn't.
>>
>
>By George, that does it *grin*. I hadn't tried FoxFont.
>
>Thanks!

Steve,

Something clicked in my head since I made my last post on this subject. VFP has two functions that may be of interest even though they're provided strictly for backward compatibility. They are OEMTOANSI() and ANSITOOEM(). What they do is convert between the two character sets. Try the following in the command window:
? OEMTOANSI(CHR(21))
? ASC(OEMTOANSI(CHR(21)))
The first will display the § character, the second will return 167.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform