Results 1 to 2 of 2

Thread: Converting Lowercase to uppercase on keypress EvB 3.0

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2007
    Posts
    17

    Angry Converting Lowercase to uppercase on keypress EvB 3.0

    i am trying to convert lowercase to uppercase, how can i do this currently i do it like this but it does not work

    Code:
    Private Sub find_KeyPress(ByVal KeyAscii As Integer)
    If KeyAscii > 96 And KeyAscii < 123 Then
               'Typed letter from "a-z", map it to "A-Z"
                KeyAscii = KeyAscii - 32
            End If
    End Sub
    but is there also a way to check each Character in a text box and make it uppercase when a button is pressed?

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Converting Lowercase to uppercase on keypress EvB 3.0

    Hi,
    change the byval to byref and you should be OK

    Pete
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

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