Results 1 to 6 of 6

Thread: [RESOLVED] Java To Visual Basic Conversion

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Resolved [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';

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Java To Visual Basic Conversion

    a Unicode character.
    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

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    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.

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    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

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: Java To Visual Basic Conversion

    OK, that's it. Thanks alot

  6. #6
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    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
  •  



Click Here to Expand Forum to Full Width