What version of cf won't my code work in? On Fri, Sep 17, 2010 at 8: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:337201 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm