|
-
Mar 3rd, 2008, 08:20 PM
#1
[RESOLVED] Java To Visual Basic Conversion
What is the actual contents of the variable c? I am trying to convert a Java program to VB.
char c = '\200';
-
Mar 4th, 2008, 08:40 AM
#2
Re: Java To Visual Basic Conversion
Last edited by ComputerJy; Mar 4th, 2008 at 08:50 AM.
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Mar 4th, 2008, 09:42 AM
#3
Re: Java To Visual Basic Conversion
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.
Last edited by jmsrickland; Mar 4th, 2008 at 09:56 AM.
-
Mar 4th, 2008, 09:58 AM
#4
Re: Java To Visual Basic Conversion
The value is 128
Code:
System.out.println((int) '\200');
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Mar 4th, 2008, 11:37 AM
#5
Re: Java To Visual Basic Conversion
OK, that's it. Thanks alot
-
Mar 5th, 2008, 01:19 AM
#6
Re: Java To Visual Basic Conversion
You are welcome 
Don't forget to mark the Thread resolved from the "Thread Tools" menu
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|