954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

listView duplicates

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?

sfrider0
Junior Poster
149 posts since Oct 2008
Reputation Points: 16
Solved Threads: 0
 

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.

hieuuk
Light Poster
44 posts since Nov 2008
Reputation Points: 11
Solved Threads: 4
 

If you load them all into an array you can extract disctingly unique values from it.. (theres a hint in there)

LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
 

Thanks guys. I put the links in a list but decided to do something totally different on what I planned on doing.

sfrider0
Junior Poster
149 posts since Oct 2008
Reputation Points: 16
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You