Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Jun 2001
    Location
    Christchurch, New Zealand
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Keycode - Convert (XP)

    Howdy All

    I've not done much with keycode's before and was wondering if there is a quick way to return the text description for a keycode or do you need create a function detailing them?

    What I want to ultimately do is if a user presses any alpha key is that it will jump down the continuous form to the items beginning with the key that has been pressed.

    Any feedback on how or best way to implement appreciated
    Many thanks
    Tony

  2. #2
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Keycode - Convert (XP)

    For the alphabetical keys the keycode is just its ASCII code .

    This code in the keydown event wll display the key pressed.

    Dim strchar As String
    If KeyCode > 64 And KeyCode < 91 Then
    strchar = Chr(KeyCode)
    MsgBox (strchar)
    End If
    Regards
    John



  3. #3
    Star Lounger
    Join Date
    Jun 2001
    Location
    Christchurch, New Zealand
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Keycode - Convert (XP)

    Many thanks John, Just what I needed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •