What is the actual contents of the variable c? I am trying to convert a Java program to VB.
char c = '\200';
Printable View
What is the actual contents of the variable c? I am trying to convert a Java program to VB.
char c = '\200';
a Unicode character.
I already know it's a character. What I need to know is the value. Is it 200, 500, 21, 57, or what? I can't do that in VB, it's not allowed so I need to know the actual value.
EDIT
OK, wait a minute. You say it's a unicode character so would it then be correct to say that it's actual value depends on the font being used? The font being used is Courier so do I look at a Courier font map at location 200 to get it's value or am I really off-track here. Maybe I need to find out how VB handles unicode characters instead of trying to think in terms of an actual value.
The value is 128
Code:System.out.println((int) '\200');
OK, that's it. Thanks alot
You are welcome :)
Don't forget to mark the Thread resolved from the "Thread Tools" menu