Bayo's solution worked perfectly. I'm just now testing Qasim's solution as well. Is there a compelling reason to choose one solution over the other, or is it a case where I pick one and go with it?
In any case, I wanted to thank you both very much; this has saved me many hours of additional confusion. :-) Finally, is there somewhere among the Reactor pages where I should document this issue and solution for others down the road? Thanks again, Dan ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Qasim Rasheed Sent: Tuesday, November 28, 2006 12:39 PM To: [email protected] Subject: Re: [Reactor for CF] Iterator getNext() question I have used this technique <cfloop condition="#iterator.hasMore()#"> <cfset iterator.getAt(1).delete( useTransaction=false ) /> </cfloop> HTH! Qasim On 11/28/06, bayo <[EMAIL PROTECTED]> wrote: Dan, To get around this behavior, call myIterator.resetIndex() after every deletion (once per loop iteration). Bayo -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [email protected] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [email protected] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [email protected] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
