VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Fast way to remove all duplicates (dupes) in a ListBox

Fredrik Schultz  (2 Submissions)   Miscellaneous   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

This method removes all duplicates in a listbox, regardless if sorting is turned on or not.
AND it's fast, short and simple
(no double loops like in some other submissions).
It's also case-insensitive.

Inputs
Call by using: RemoveDupes MyListBox (where MyListBox is the listbox that will be cleaned of all duplicates.)

Assumes
Call by using: RemoveDupes MyListBox (where MyListBox is the listbox that will be cleaned of all duplicates.)

Rate Fast way to remove all duplicates (dupes) in a ListBox (5(5 Vote))
Fast way to remove all duplicates (dupes) in a ListBox.bas

Fast way to remove all duplicates (dupes) in a ListBox Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters