getting extended ascii value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bamboooxy
    New Member
    • Jan 2009
    • 1

    getting extended ascii value

    Hi all,

    I am new to this forums and I am so happy if you guys can help me.

    I got the same problems with johell. The VB6 could not understand the extended ascii code ,

    chr$(>128), it returns ...nothing

    Even I tried to get the ASCII code

    lblTEST.Caption = Asc(€)

    it shows ...Compile Error, Variable not defined.

    I use the same VB6 soft to some PCs. Some work well, but some happen like this.

    I am now curious whether the software problem or the PC hardware problem?

    Please give me some advice,

    Thanks in advance
  • shweta123
    Recognized Expert Contributor
    • Nov 2006
    • 692

    #2
    Hi,

    You can remove the error that you are getting by doing modification in your code like this:

    Code:
     
                  Dim ch As Char = "£"
                  lblTEST.Text = Asc(ch)
    Using the above code you can get the ascii value of the given character.

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      This really belongs in the VB forum, not the .NET forum.
      Splitting and moving.
      MODERATOR

      Comment

      • QVeen72
        Recognized Expert Top Contributor
        • Oct 2006
        • 1445

        #4
        HI,

        ENCLOSE THE CHARACTER IN DOUBLE QUOTES:
        [code=vb]
        lblTEST.Caption = Asc("€")
        [/code]
        Regards
        Veena

        Comment

        Working...