Change back from ASCII code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamesd0142
    Contributor
    • Sep 2007
    • 471

    Change back from ASCII code

    aVal = textbox1.text

    asciVal = asc(aVal)

    How do I reverse this so I got the ASCII value 97 stored in variable asciVal, how can I get it back to "a"?

    cheers
    Last edited by Killer42; Oct 5 '07, 03:03 AM.
  • jamesd0142
    Contributor
    • Sep 2007
    • 471

    #2
    If you interested

    dim character as char
    character = Chr("97")

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Originally posted by jamesd0142
      ... asciVal = asc(aVal)
      How do I reverse this so I got the ASCII value 97 stored in variable asciVal, how can I get it back to "a"?
      The Chr() function is the one you want.

      Oh! I see from your second post that you found Chr(). Does that mean you no longer needed an answer? You should have said.


      Please don't post questions in the Articles area. This one was moved to the forum, where it belongs. Future questions posted in the wrong area may be deleted, or get you temporarily banned from the site.
      Last edited by Killer42; Oct 5 '07, 03:02 AM.

      Comment

      • jamesd0142
        Contributor
        • Sep 2007
        • 471

        #4
        Yes I didn't realise I posted in the wrong area, that's what you get for rushing :P
        Last edited by Killer42; Oct 5 '07, 11:03 PM.

        Comment

        Working...