473,320 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

CHRW

Does anybody knows why the function chrw(204) returns different character in
vb6 and in vb.net ???
thanks in advance
May 23 '06 #1
4 5090
Usign the same font ? Have you checked that AscW returns the same code ?

For now I'm unable to repro this...

--
Patrice

"Nikos Tsoupros" <nt*@imprvove.gr> a écrit dans le message de news:
%2****************@TK2MSFTNGP05.phx.gbl...
Does anybody knows why the function chrw(204) returns different character
in vb6 and in vb.net ???
thanks in advance

May 23 '06 #2
On the same computer?

This has very much to do with the used code table.

General
http://www.microsoft.com/globaldev/r...ce/cphome.mspx

OS systems
http://www.microsoft.com/globaldev/r...ocversion.mspx

I hope this helps a little bit?

Cor
"Nikos Tsoupros" <nt*@imprvove.gr> schreef in bericht
news:%2****************@TK2MSFTNGP05.phx.gbl...
Does anybody knows why the function chrw(204) returns different character
in vb6 and in vb.net ???
thanks in advance

May 23 '06 #3
"Nikos Tsoupros" <nt*@imprvove.gr> schrieb:
Does anybody knows why the function chrw(204) returns different character
in vb6 and in vb.net ???


I am not able to see any difference between the characters returned by the
function in VB6 and VB.NET.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

May 23 '06 #4
Nikos,
In addition to the other comments:

How are you deciding they return different characters?

Are you seeing something different on a Window? Are you certain you are
using the same fonts?

Are you seeing something different in a file? Are you certain you are using
the correct encoding?

Are you seeing something different in the output window? Are you certain
this is not a fluke of the output window.

Are you using Asc to get the ordinal value of the Char? You really need to
use AscW instead, as Asc returns the ANSI char code, while AscW returns the
Unicode char code. ChrW accepts a Unicode char code...

Can you describe exactly what you are doing that you think they are
returning different values.

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Nikos Tsoupros" <nt*@imprvove.gr> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
| Does anybody knows why the function chrw(204) returns different character
in
| vb6 and in vb.net ???
| thanks in advance
|
|
May 24 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Guinness Mann | last post by:
I have some bytes that are representations of ascii characters. Is there a C# equivalent of the VB Chr() and ChrW() functions? How do I turn these byte-strings into characters? Thanks, --...
1
by: Shawn B. | last post by:
Greetings, What is the C# equivelant of the VB.NET CharW() function? I've seen many replies to a similar post but I've never seen the answer that solves my problem. I need to get the Unicode...
6
by: VB Programmer | last post by:
I have a line of code in my project: mobjText.Append(ChrW(Bytes(iIndex))) I took out the reference to Microsoft.VisualBasic in my imports so that I am forced to use all VB.NET stuff. What is...
4
by: Agnes | last post by:
I know Microsoft.VisualBasic.ChrW(13) is "enter" How about other member ? e.g backspace... Where can I know all the members ? thanks
17
by: Mike Labosh | last post by:
I would really rather use the "dot-nettified" syntax rather than digging global functions out of Microsoft.VisualBasic. Anyone know the newfangled way to achieve the same results? -- Peace &...
1
by: Nikos Tsoupros | last post by:
i use vb and i have a problem with encoding in vb.net chrw(204) returns the char I in vb6 the function chrw(204) returns the char I also in vb6 ascw(chrw(204)) returns 73 why??????????????????
3
Scott Price
by: Scott Price | last post by:
Hello again... This time I'm trying to get M$ Access 2003 VBA to accept the ChrW(215b) (this is the unicode number for the 1/8 character) standard... Each time I try to enter this, it beeps and...
2
by: Joe Duchtel | last post by:
Hello - I was wondering why I can do a ... Public Const A As Char = Chr(36) .... but not a ... Public Const B As Char = Chr(165)? It seems like 0-127 are okay with the Chr(). Is this...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.