943,902 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 1514
  • C# RSS
Dec 21st, 2008
0

listView duplicates

Expand Post »
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?
Similar Threads
Reputation Points: 16
Solved Threads: 0
Junior Poster
sfrider0 is offline Offline
149 posts
since Oct 2008
Dec 22nd, 2008
1

Re: listView duplicates

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.
Reputation Points: 11
Solved Threads: 4
Light Poster
hieuuk is offline Offline
44 posts
since Nov 2008
Dec 22nd, 2008
1

Re: listView duplicates

If you load them all into an array you can extract disctingly unique values from it.. (theres a hint in there)
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Dec 24th, 2008
0

Re: listView duplicates

Thanks guys. I put the links in a list but decided to do something totally different on what I planned on doing.
Reputation Points: 16
Solved Threads: 0
Junior Poster
sfrider0 is offline Offline
149 posts
since Oct 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: using regex to replace a pattern?
Next Thread in C# Forum Timeline: Help with C# app to XNA.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC