This evaluates to true, why?
chr(254) = "th"
--
--Zorpie 4 3245
"Zorpiedoma n" <no*********@be atles.com> wrote in message
news:7E******** *************** ***********@mic rosoft.com... This evaluates to true, why?
chr(254) = "th"
-- --Zorpie
Console.WriteLi ne(Chr(254) = "th") displays False for me.
Mythran
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
"Zorpiedoma n" <no*********@be atles.com> wrote in message
news:7E******** *************** ***********@mic rosoft.com...
| This evaluates to true, why?
|
| chr(254) = "th"
|
| --
| --Zorpie
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:Oi******** ******@TK2MSFTN GP12.phx.gbl... 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
"Zorpiedoma n" <no*********@be atles.com> wrote in message news:7E******** *************** ***********@mic rosoft.com... | This evaluates to true, why? | | chr(254) = "th" | | -- | --Zorpie
I learn something new every day.
Mythran
Zorpiedoman,
In addition as well on this thread.
See my answer on your follow up question about code pages.
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ian justice |
last post by:
Before i post actual code, as i need a speedyish reply.
Can i first ask if anyone knows off the top of their head, if there is
a likely obvious cause to the following problem.
For the moment i've reduced my form request to a simple text string
entry, instead of my desired optional parameters. As i have been stuck
with a single unfathomable glitch for over a year.
Basically, if i enter queries such as ;
"select * from table" "select * from...
|
by: Michael Brennan-White |
last post by:
If I submit my for using a get action the resulting page loads . If I
use a post action I get an error page saying "The page cannot be
found". I am calling the originating page!!! This happens in IE as
well as FireFox.
This code has been tested on a Win2003 server, IIS6, PHP 5.0.3, mySQL
4.1.8 and it works fine.
The problem server is a Win2k server, IIS5, PHP 5.0.4, mySQL 4.1.11.
|
by: kmunderwood |
last post by:
I am trying to combine "if match=" and "when test"
I am a newbie, and have made both work separately, but I can not seem
to combine them.
This is my xml("index.xml")page(I can not change this, it comes to me
this way.
<?xml version="1.0" encoding="iso-8859-1" ?>
|
by: David. E. Goble |
last post by:
Hi All;
I have a few of these;
sigsImages="sigs/finished1.jpg"
sigsImages="sigs/foghorn.jpg"
lower I have;
|
by: Grant Richard |
last post by:
Using the TcpListener and TcpClient I created a program that just sends and
receives a short string - over and over again. The program is fine until it
gets to around 1500 to 1800 messages. At that time, I get a SocketException
with the message "Only one usage of each socket address (protocol/network
address/port) is normally permitted". This happen if you use localhost or
between two distinct computers. And, for a period of time after the...
| |
by: Giggle Girl |
last post by:
I have inherited a stylesheet at work, with the designer no longer
working here.
In an external stylesheet it says:
thead th, thead th.locked
{
position:relative;
}
|
by: scottyman |
last post by:
I can't make this script work properly. I've gone as far as I can with
it and the rest is out of my ability. I can do some html editing but
I'm lost in the Java world. The script at the bottom of the html page
controls the form fields that are required. It doesn't function like
it's supposed to and I can leave all the fields blank and it still
submits the form. Also I can't get it to transfer the file in the
upload section. The file name...
|
by: jonceramic |
last post by:
Hi guys,
I have a user who wants to have a report that shows only the 10th
value recorded by his equipment. (i.e. His equipment records
temperature every 30 seconds, but he only wants to view the data at
every 5 minutes.)
I proposed using the "mod" function in a WHERE statement on the
seconds "datepart" to test if each datapoint is an interval of 5
minutes from the starting number.
|
by: raghudr |
last post by:
Hi all,
I am coding for displaying a splash screen until a big job is
finished.I am getting an exception:only during the first start of the
system.Rest all the time
it is working fine.
Only when i restart the PC my application will be launced by windows
services at startup and i get the exception saying:
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |