Advertisement
4_2005-2006 VB function enhancement #149992

Fast ListView DeDuper / String Search (finally!)

I searched all over Google and PSC, 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)

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine