Results 1 to 3 of 3

Thread: Chr() - Very weird [Resolved]

Threaded View

  1. #1

    Thread Starter
    Lively Member UTGrim's Avatar
    Join Date
    Jan 2005
    Location
    Brazil
    Posts
    92

    Resolved Chr() - Very weird [Resolved]

    I'm making a calculator that receives input through the form's KeyUp event. I created a Select Case to know what characters were input like this:

    VB Code:
    1. Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
    2. Select Case Chr(KeyCode)
    3.     Case "0"

    This works fine when I type with the numbers on top of the letter keys, but when I use the numbers to the right of the keyboard, Chr() returns some weird characters, like 96 (`).

    How can I know what characters were typed down for real?

    Thank you.
    Last edited by UTGrim; Apr 24th, 2005 at 10:33 PM.

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