Status
Not open for further replies.

saro_gn

Broken In
hi

i can write the pgm in vb6.0 for remove all items from the listbox within single click. But it will be produce the errorinvalid argument.
(total 5 Items.)

code is as follows.


Private Sub Command1_Click()
For i = 0 To 5
List1.RemoveItem (i)
Next
End Sub

pls any one suggests to me.
 

siriusb

Cyborg Agent
try using
list1.clear

And if there are only 5 items, ur loop must go from 0 to 4.
U can use list1.listcount instead of using a number.
 
Status
Not open for further replies.
Top