Results 1 to 5 of 5

Thread: Text boxes

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    4
    Hello everyone
    I would like to know how can I convert a lowcase text in a text box to uppercase??
    Thanks for the help
    Felipe

  2. #2
    Lively Member
    Join Date
    May 1999
    Posts
    100
    Private Sub Command1_Click()
    Dim i As Integer
    Dim sTmp As String
    For i = 1 To Len(Text1.Text)
    sTmp = sTmp & UCase(Mid(Text1.Text, i, 1))
    Next
    Text1.Text = sTmp
    End Sub

  3. #3
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655

    Wink

    You could do that, but it is easier to just use this:

    Code:
    Private Sub Command1_Click()
    Text1.Text = UCase(Text1.Text)
    End Sub
    You could even do it this way:

    Code:
    Private Sub Text1_Change()
    Text1.Text = UCase(Text1.Text)
    Text1.SelStart = Len(Text1.Text)
    End Sub
    This example will change to text to upper case as they type.

  4. #4
    Lively Member
    Join Date
    May 1999
    Posts
    100
    ops.. hehehe.. Your way was better..

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    4

    Thanks

    Thanks everyone for the help
    Felipe

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