>Hi everyone. I am looking for a way to compare 2 different lists of
>information, and after comparing them keep which records are exactly the
>same.

I'd probably convert them both to arrays. Then, I'd loop along the first array and 
look for each element within the second array.  If it exists in the second array, keep 
it; otherwise, delete that element from the first array.  When you're done, whatever's 
left in the first array should be the items you need.

You can do that keeping them as lists, but I think it'd be faster with arrays.

Scott
--------------------------------
Scott Brady
http://www.scottbrady.net/
 
             
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to