|
-
Feb 23rd, 2001, 10:53 AM
#1
Thread Starter
Hyperactive Member
How do I clear a ListView?
-
Feb 23rd, 2001, 10:58 AM
#2
Retired VBF Adm1nistrator
ListView1.ListItems.Clear ?
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Feb 23rd, 2001, 10:59 AM
#3
There are no stupid questions, only stupid answers - so here's one for you from MSDN (listview scenario 3 in the help file) :
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.
-
Feb 23rd, 2001, 11:02 AM
#4
Thread Starter
Hyperactive Member
Thanks guys. Gotta love the 6 minute turnaround on VB-World.
-
Feb 23rd, 2001, 11:05 AM
#5
Retired VBF Adm1nistrator
5 minutes here
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|