Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display chr(21)
Message
From
12/11/2001 09:37:15
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00579731
Message ID:
00580439
Views:
17
Mornin' George,

>
>Steve,
>
>Something clicked in my head


Did it hurt? <g>

>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.
>

That is interesting. So, I wanted to see how it would work with another problematic EDI characters One possible EDI element seperator is chr(127), which looks like homeplate (yes, baseball) in ASCII. It displays properly in FoxFont, but the OEMTOANSI() still renders it incorrectly (I'm using that term loosely) in other fonts.

According to HackFox, OEMTOANSI() works for characters 15, 20, 21 and those above 128.

Thanks for the additional info...
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform