Results 1 to 4 of 4

Thread: ASCII -> Text and visa versa

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 1999
    Posts
    79

    Post

    Is there anyway that I can get VB to convert ASCII numbers to single character strings and back again? I need it for doing v. basic encryption of high scores.


    Thanks

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    You can convert an ASCII value to a Character using the Chr() Function, ie.

    Chr(65) would be A

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 1999
    Posts
    79

    Post

    Thanks. And is there a way of doing it the other way round?

  4. #4
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    That would be the Asc() Function, ie.

    Asc("A") would return 65

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]



    [This message has been edited by Aaron Young (edited 01-10-2000).]

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