Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display chr(21)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00579731
Message ID:
00579854
Vues:
30
>>>Hmm. I just went into Notepad, typed ALT-21, saved that file, and imported
>>>it into VFP -- it showed up correctly, and when I did ASC(lcStr), it printed
>>>167. Something's wacky somewhere, and I'm not convinced it's VFP.
>>
>>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.
>
>No, but CHR(21) does. So, which way of doing it is right? :-)

Depends on whether the character set is ANSI or ASCII based. In ASCII it's 21. In ANSI it's 167. Then there's Unicode...:-)
George

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

Click here to load this message in the networking platform