Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display chr(21)
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00579731
Message ID:
00579854
Views:
31
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform