|
-
Jan 15th, 2014, 01:41 AM
#12
Re: Compare two listviews
 Originally Posted by 4x2y
1- Exit For prevents removing dublicated itemes in ListView1
There are no duplicate items in this case, as stated in post #5.
 Originally Posted by 4x2y
2- When modifying a collection inside loop, it must be reversed loop
That's only so that the indexes of the items you are yet to visit are not affected but because the fact that there are no duplicate items means that you can, and SHOULD, break out of the loop as soon as you find a match, it doesn't matter about changing indexes because we're not going to visit any more items anyway.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|