Usign the same font ? Have you checked that AscW returns the same code ?
For now I'm unable to repro this...
--
Patrice
"Nikos Tsoupros" <nts@imprvove.g r> a écrit dans le message de news:
%23nr5IjnfGHA.4 776@TK2MSFTNGP0 5.phx.gbl...[color=blue]
> Does anybody knows why the function chrw(204) returns different character
> in vb6 and in vb.net ???
> thanks in advance
>[/color]
"Nikos Tsoupros" <nts@imprvove.g r> schreef in bericht
news:%23nr5Ijnf GHA.4776@TK2MSF TNGP05.phx.gbl. ..[color=blue]
> Does anybody knows why the function chrw(204) returns different character
> in vb6 and in vb.net ???
> thanks in advance
>[/color]
"Nikos Tsoupros" <nts@imprvove.g r> schrieb:[color=blue]
> Does anybody knows why the function chrw(204) returns different character
> in vb6 and in vb.net ???[/color]
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/>
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" <nts@imprvove.g r> wrote in message
news:%23nr5Ijnf GHA.4776@TK2MSF TNGP05.phx.gbl. ..
| Does anybody knows why the function chrw(204) returns different character
in
| vb6 and in vb.net ???
| thanks in advance
|
|
Comment