Results 1 to 3 of 3

Thread: [RESOLVED] LCase listbox

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2008
    Posts
    2

    Resolved [RESOLVED] LCase listbox

    i just started vb and i need to convert all listbox items to lowercase could someone show me an example of how to do this? thanks for any help.

  2. #2
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: LCase listbox

    It's probably better to do it when you are adding the items, but try this. I'm typing this directly into here so you will have to format it yourself in VB...

    Code:
    'On a command button click
    Private Sub Command1_Click()
        Dim i as integer
        With List1 'Name of listbox here
            For i = 0 to .listcount -1
                .list(i) = LCase$(.list(i))
            Next i
        End With
    End Sub

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2008
    Posts
    2

    Re: LCase listbox

    thank you for the help.exactly what i was looking for.

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