remove item from list???

KummaZ
09-07-2003, 07:28 PM
I have a really simple problem, well for you guys anyway. For some reason it won't let me delete an item from the list once I have clicked on it. I get a 'type mismatch' error.

FuelDelete = lstFuel.Text
lstFuel.RemoveItem FuelDelete

Any ideas why this is happening?
Thanks to whoever can help me :)

Lar_19
09-07-2003, 07:53 PM
You need to provide the RemoveItem method the ListIndex to be removed, not the text.

KummaZ
09-07-2003, 07:55 PM
Thanks. I did that before but I typed in the wrong thing for the index. Thanks for that.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum