oh great...thanks a bunch, Ade! -john
>That's right. Although you don't need the #'s around the z. > >Ade > >-----Original Message----- >From: john petroshius [mailto:[EMAIL PROTECTED] >Sent: 11 October 2005 00:05 >To: CF-Newbie >Subject: Re: looping problem > > >.....thanks for your response, Ade...But could I insert the index variable >inside this type of notation...that is, if I create a <cfloop> with index=z >and give some values to start and end, could I write: #SESSION["mealID" & >#z# & "Ordered"]#...and have that loop a bunch of times, each ending up >looking the same except "mealID" would be followed by a 1, then in the next >iteration a 2, then in the next a 3, etc? > >.....because it seems like I'd want to use a dynamic variable based on the >index variable of the <cfloop> if I wanted the whole expression to loop >thirty of forty or however many times...(?) > >-john > > > > >>Try array notation: >> >>#SESSION["mealID" & 1 & "Ordered"]# >> >>Ade ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1430 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
