CHRW

  • Thread starter Thread starter Nikos Tsoupros
  • Start date Start date
N

Nikos Tsoupros

Does anybody knows why the function chrw(204) returns different character in
vb6 and in vb.net ???
thanks in advance
 
Usign the same font ? Have you checked that AscW returns the same code ?

For now I'm unable to repro this...
 
Nikos Tsoupros said:
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.
 
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


| Does anybody knows why the function chrw(204) returns different character
in
| vb6 and in vb.net ???
| thanks in advance
|
|
 
Back
Top