Is there a way to remove duplicate items (strings) from a ListView , and would someone have an example of how to use readline and szCmp to remove multi duplicate strings for a large list.

I wrote something that would only mark one group of duplicate strings.  I could not figure out how to move on to the next group of duplicate strings in the same list.  I would still be left with what to do with those marked strings but i was almost getting close until I realize after all these days I have no way to continue so i spent yesterday learning to use Listview.  I managed to get all strings to feed in listview in hope of a way to delete duplicate strings with LV controls or something .  (Listview is fun to use, but i see it can be slow.)

Start
DDDDDDDDDDDDDD
ABCDEFGHIJKLMN
AAAAAAAAAAAAAA
BBBBBBBBBBBBBB
AAAAAAAAAAAAAA
DDDDDDDDDDDDDD
BBBBBBBBBBBBBB


end sorted
AAAAAAAAAAAAAA
ABCDEFGHIJKLMN
DDDDDDDDDDDDDD
BBBBBBBBBBBBBB

Posted on 2007-06-12 05:54:18 by numan