Home All Groups Group Topic Archive Search About
Author
23 May 2006 2:58 PM
Nikos Tsoupros
Does anybody knows why the function chrw(204) returns different character in
vb6 and in vb.net ???
thanks in advance

Author
23 May 2006 3:44 PM
Patrice
Usign the same font ? Have you checked that AscW returns the same code ?

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

--
Patrice

"Nikos Tsoupros" <n**@imprvove.gr> a écrit dans le message de news:
%23nr5IjnfGHA.4***@TK2MSFTNGP05.phx.gbl...
Show quoteHide quote
> Does anybody knows why the function chrw(204) returns different character
> in vb6 and in vb.net ???
> thanks in advance
>
Author
23 May 2006 3:52 PM
Cor Ligthert [MVP]
On the same computer?

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

General
http://www.microsoft.com/globaldev/reference/cphome.mspx

OS systems
http://www.microsoft.com/globaldev/reference/oslocversion.mspx

I hope this helps a little bit?

Cor


Show quoteHide quote
"Nikos Tsoupros" <n**@imprvove.gr> schreef in bericht
news:%23nr5IjnfGHA.4776@TK2MSFTNGP05.phx.gbl...
> Does anybody knows why the function chrw(204) returns different character
> in vb6 and in vb.net ???
> thanks in advance
>
Author
23 May 2006 11:25 PM
Herfried K. Wagner [MVP]
"Nikos Tsoupros" <n**@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/>
Author
24 May 2006 12:31 PM
Jay B. Harlow [MVP - Outlook]
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


Show quoteHide quote
"Nikos Tsoupros" <n**@imprvove.gr> wrote in message
news:%23nr5IjnfGHA.4776@TK2MSFTNGP05.phx.gbl...
| Does anybody knows why the function chrw(204) returns different character
in
| vb6 and in vb.net ???
| thanks in advance
|
|