If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Visual Basic > Duplicate Data in CheckedListBox

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Feb 2013
Posts: 1
Duplicate Data in CheckedListBox

Good evening!
Is it possible to remove duplicate data in the CheckedListBox?

[img]

Like the one in the Client. There are 2 Uru's. Is it possible to remove the other Uru?
Reply With Quote
  #2 (permalink)  
Old
Super Moderator
 
Join Date: Jun 2004
Location: Arizona, USA
Posts: 1,844
Well, where is the data coming from? If it's a database, write your query so as to not retrieve duplicate information.

If it's from somewhwere else, why not append the data to a string array first, but before adding to the array, check it against all earlier values saved in the array. If it's already there, don't add a new element. Then, after all are checked, copy the contents of the array to the listbox.
__________________
Lou
使大吃一惊
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On