Re: Why is this true: chr(254) = "th"
- From: "Mythran" <kip_potter@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 16 Jun 2005 15:56:07 -0700
"Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP@xxxxxxx> wrote in message news:OiD3cVscFHA.3048@xxxxxxxxxxxxxxxxxxxxxxx
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
"Zorpiedoman" <nowheremane@xxxxxxxxxxx> wrote in message
news:7E8F8D1A-50C8-46D3-BD87-E7801D831C8E@xxxxxxxxxxxxxxxx
| This evaluates to true, why?
|
| chr(254) = "th"
|
| -- | --Zorpie
I learn something new every day.
Mythran
.
- References:
- Why is this true: chr(254) = "th"
- From: Zorpiedoman
- Re: Why is this true: chr(254) = "th"
- From: Jay B. Harlow [MVP - Outlook]
- Why is this true: chr(254) = "th"
- Prev by Date: Writing a text file to an mdb
- Next by Date: looking for freeware html/text help documents
- Previous by thread: Re: Why is this true: chr(254) = "th"
- Next by thread: Re: Why is this true: chr(254) = "th"
- Index(es):
Relevant Pages
|