Jay B. Harlow said:
Zorpie,
I suspect because under Windows Control Panel you have a region selected
where the ANSI code page maps Chr(254) to a character that maps to th. For
example in the US the code page is normally "Western European (Windows)",
which causes Chr(254) maps to the Latin Small Letter Thorn þ, If you have
Option Compare Text, "þ" = "th", while if you have Option Compare Binary
"þ"
<> "th".
What does the following print?
Debug.WriteLine(AscW(Chr(254)), "254")
For characters over 127, I normally use the Unicode value & ChrW rather
then
Chr which uses your Windows ANSI code page value.
Hope this helps
Jay
| This evaluates to true, why?
|
| chr(254) = "th"
|
| --
| --Zorpie