PDA

Click to See Complete Forum and Search --> : Lowercase


Gorf
May 25th, 2001, 09:17 AM
how do u convert inputbox's input to lower case?

Gorf

Fox
May 25th, 2001, 09:32 AM
x = LCase(InputBox(...))

Sastraxi
May 25th, 2001, 07:33 PM
Someone wanted to do this a while ago. Putting fox's code in the change function would reverse the string so you should use the string reversal function as well.

Jethro
May 25th, 2001, 07:59 PM
Also have a look at the strconv function.

Fox
May 25th, 2001, 09:48 PM
Putting fox's code in the change function would reverse the string.

What???

Zaei
May 25th, 2001, 09:49 PM
Agreed Fox...
Sas, WHAT? =)

Z.

Sastraxi
May 25th, 2001, 09:57 PM
So I am told!

Sastraxi
May 25th, 2001, 10:01 PM
From reading other's posts, I have gathered that (because this exact Q was asked a while ago) doing this will reset the cursor to the front of the textbox, so that it appears to be reversing...

And Fox and Zaei...

DONT DO THAT
Please

Zaei
May 25th, 2001, 10:18 PM
Yes, it does stick the cursor at the fron of the box, but thats not even close to reversing =). Besides, ALL textbox assignments do that.

Z.

Stef
May 26th, 2001, 06:11 AM
Just set the SelStart property to the len() if the text to put it on the end again...

Zaei
May 26th, 2001, 11:26 AM
Or you could do something like:

Dim x As String
Dim i As Long
Me.Show
x = LCase(InputBox(""))
For i = 1 To Len(x)
SendKeys Mid(x, i, 1)
Next i

...but thats a bit dumb, no? =).

Z.

Jotaf98
May 28th, 2001, 09:29 AM
Look Zaei, it's not for a TEXT BOX, but for an INPUT BOX :p:rolleyes: