Results 1 to 2 of 2

Thread: user input to decimal

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Posts
    7
    i need a little help i was wondering if anyone knows how to convert the keyboard input of a word from a user to its decimal representation or binary representation i know how to convert decimal to binary but not the characters to the decimal value

    for example if the user inputs abcd it would give 97+98+99+100(ascii values)
    which = 394

    any help would be greatly appreciated

  2. #2
    Fanatic Member
    Join Date
    Nov 2000
    Location
    Sydney Australia
    Posts
    804
    Use asc function I think is what you need:

    Code:
    MsgBox Asc("a")

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