Results 1 to 12 of 12

Thread: Lowercase

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Posts
    10

    Lowercase

    how do u convert inputbox's input to lower case?

    Gorf

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    x = LCase(InputBox(...))

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4
    Jethro
    Guest
    Also have a look at the strconv function.

  5. #5
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Putting fox's code in the change function would reverse the string.
    What???

  6. #6
    Zaei
    Guest
    Agreed Fox...
    Sas, WHAT? =)

    Z.

  7. #7
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134

    DONT DO THAT!

    So I am told!
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  8. #8
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  9. #9
    Zaei
    Guest
    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.

  10. #10
    Member Stef's Avatar
    Join Date
    May 2001
    Posts
    41
    Just set the SelStart property to the len() if the text to put it on the end again...

  11. #11
    Zaei
    Guest
    Or you could do something like:
    Code:
    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.

  12. #12
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Look Zaei, it's not for a TEXT BOX, but for an INPUT BOX
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

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