How do I clear a ListView?
Printable View
How do I clear a ListView?
ListView1.ListItems.Clear ?
There are no stupid questions, only stupid answers - so here's one for you from MSDN (listview scenario 3 in the help file) :
Quote:
GetTitles Procedure: Clear the ListItems collection with the Clear method
Each time you invoke the GetTitles procedure, you will query the Biblio.mdb database to create a new collection of ListItem objects. The first thing to do, however, is to clear the old collection with the Clear method:
lvwDB.ListItems.Clear ' Clears all ListItems.
Thanks guys. Gotta love the 6 minute turnaround on VB-World.
5 minutes here ;)