Am I blind? The email I read from Michael does NOT show the array attribute. In fact, his loop looks exactly like your code.
On Fri, Sep 17, 2010 at 6:42 PM, Andrew Scott <andr...@andyscott.id.au>wrote: > > That won't work in certain versions of ColdFusion, if you are not using the > version of ColdFusion that supports this. You can do a normal cfloop from > and to and use the indexing of the array in this manner > > <cfloop from="1" to="#ArratLen(myArray)#" index="arrayCounter"> > myArray[arrayCounter].images > </cfloop> > > > Regards, > Andrew Scott > http://www.andyscott.id.au/ > > > > > -----Original Message----- > > From: Michael Grant [mailto:mgr...@modus.bz] > > Sent: Saturday, 18 September 2010 10:35 AM > > To: cf-talk > > Subject: Re: Looping through arrays with structures > > > > > > <cfloop from="1" to="#arrayLen(firstArray)#" index="x"> > > > > <cfloop from="1" to="#arrayLen(firstArray[x].images.secondArray)#" > > index="y"> > > > > <cfoutput>#firstArray[x].images.secondArray[y]#</cfoutput> > > > > </cfloop> > > > > </cfloop> > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337204 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm