VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Fast ListView DeDuper / String Search (finally)

by Michael L. Canejo (28 Submissions)
Category: VB function enhancement
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

I searched all over Google and VBC, there isn't a "straight to the point" listview deduper using API. Using VB6 is EXTREMELY slow, and using the built in listview FindItem() function is horrible in performance. API was the solution for me but there is few resources out there for listviews and deduping with api so I took this one upon my self and wanted to share it. It's my hope also that maybe we can get it to go faster... NOTE: This will only dedupe a listview based on the Primary column, it will not work for deduping the subitems unless you modify the code. Enjoy.
UPDATE: Added a faster method using a collection (credit to Steppenwolfe)

Inputs
Duplicate items in a listview
Code Returns
No duplicates in a listview

Rate Fast ListView DeDuper / String Search (finally)

Download Fast ListView DeDuper / String Search (finally)

Download Fast ListView DeDuper / String Search (finally) (20 KB)

Fast ListView DeDuper / String Search (finally) Comments

No comments have been posted about Fast ListView DeDuper / String Search (finally). Why not be the first to post a comment about Fast ListView DeDuper / String Search (finally).

Post your comment

Subject:
Message:
0/1000 characters