VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Add only unique items to a listbox (no duplicates added). Fast and short without any loops.

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

Use this method to avoid adding an item to a ListBox that already exists.
It's a lot faster and shorter than submissions that uses loops etc.

Inputs
StringToAdd = the string to add (if not already exists) lst = your ListBox

Rate Add only unique items to a listbox (no duplicates added). Fast and short without any loops. (12(12 Vote))
Add only unique items to a listbox (no duplicates added). Fast and short without any loops..bas

Add only unique items to a listbox (no duplicates added). Fast and short without any loops. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters