Mistake in the Asc() VB function?

Posted by Alexander on Stack Overflow See other posts from Stack Overflow or by Alexander
Published on 2010-06-03T15:48:45Z Indexed on 2010/06/03 15:54 UTC
Read the original article Hit count: 132

Filed under:
|

Hello!

Could you please tell why the Asc() function returns incorrect result?

    Dim TestChar = Chr(128)
    Dim CharInt = Asc(TestChar) ' this is a mistake on Windows 7 x64. Asc(TestChar) returns 136 instead of 128

I executed this code on another computer and the result was 128.

Thanks.

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about strings