Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Off-topic

???
07/02/04 14:53
Read: times


 
Msg Score: -2
 -2 Off-Topic
#73518 - VB problem again: "List1.RemoveItem i"
Hello!
A VB problem again:
I'm using the "List" in VB. There are serval items added in the list. After I clicked a button on the Form, selected items in the List will be removed using the "List1.RemoveItem". I failed to do so coz I use the "List1.selected" as the indicator, but when I delete the item, say, the first item, then all the Index of the items in the list will be changed therefore.(more then one item can be selected)

For i = 0 to List1.listcount-1
List1.RemoveItem (i)
Next

Stanley

No replies in thread

Back to Subject List