listView duplicates

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2008
Posts: 89
Reputation: sfrider0 is an unknown quantity at this point 
Solved Threads: 0
sfrider0 sfrider0 is offline Offline
Junior Poster in Training

listView duplicates

 
0
  #1
Dec 21st, 2008
I'm getting all the links from a web page and displaying them in a listView box. How do I prevent duplicates? I know how to block some links that I don't want by using the StartsWith and Equals and those functions. Do I do something with those or is there more to it?
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 44
Reputation: hieuuk is an unknown quantity at this point 
Solved Threads: 4
hieuuk hieuuk is offline Offline
Light Poster

Re: listView duplicates

 
1
  #2
Dec 22nd, 2008
Well, if you scan over the website content and find the link.
Check if the link in the arraylist or not with arraylist.contain().
If sastify, you can add that link to an arraylist.
.Net Developer - 3D Game Designer
My Portfolio/Blog: http://www.hieu.co.uk
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: listView duplicates

 
1
  #3
Dec 22nd, 2008
If you load them all into an array you can extract disctingly unique values from it.. (theres a hint in there)
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 89
Reputation: sfrider0 is an unknown quantity at this point 
Solved Threads: 0
sfrider0 sfrider0 is offline Offline
Junior Poster in Training

Re: listView duplicates

 
0
  #4
Dec 24th, 2008
Thanks guys. I put the links in a list but decided to do something totally different on what I planned on doing.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC