"Exactly what you need to do" sounds a lot like what the filter and sort functions can do for you, with out all that extra work. I'd check those out first.
-----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of e_baggg Sent: Tuesday, February 27, 2007 11:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Need help seaching and comparing in an ArrayCollection That is exactly what you need to do. Create a "for" loop and get a handle on each object in the loop. Then, set up a method that returns a Boolean if it needs to be flagged. This method will check the dates. if true, then inside your For loop, flag the data object. Note: You can do the conditionals inside the for loop, it's just better for readability to extract that logic out to another method within the same class. --- In flexcoders@yahoogroups.com, "Mark" <[EMAIL PROTECTED]> wrote: > > I'm at a bit of a loss right now how to do something. I'm building > an app that shows current and future projects with deploy dates, > names, etc. One thing they want this app to do is to flag projects > that are to be deployed within a week of any other project. In other > words, if one is going out the door on March 1 and anther is going out > on March 3 or February 27, each gets a flag. > > I'm really at a loss on how to best go about searching my > ArrayCollection for these items. Can someone please help with how I > can get started? I guess I somehow need to pull out one item at a > time from the AC and compare it with all the rest in the AC? > > Thanks > ------------------------ Yahoo! Groups Sponsor --------------------~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***