If you want to avoid using the nested loop, use the following algo for checking redundancy.
1) Initialize a String variable varDateString, with the first date value (say 10/25/2009)
2) Take the other date values one by one and do the following with each date value
a) check if this date is already a substring of varDateString (variable initialized above)
b) If yes, then there is a redundancy, exit out of the loop.
c) If no, then continue untill the loop is over or the redundancy is found
Let me know if this was helpful
Thanks
Main Topics
Browse All Topics





by: BadotzPosted on 2009-11-02 at 15:37:12ID: 25724926
Try this:
Select allOpen in new window