|
-
May 27th, 2000, 10:53 PM
#1
Thread Starter
New Member
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
-
May 27th, 2000, 11:09 PM
#2
Lively Member
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
-
May 28th, 2000, 12:19 AM
#3
Fanatic Member
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.
-
May 28th, 2000, 12:56 AM
#4
Lively Member
ops.. hehehe.. Your way was better..
-
May 28th, 2000, 05:07 AM
#5
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|