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.
Printable View
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.
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
thank you for the help.exactly what i was looking for.:)