You can not use cfoutput to output complex data structures (in this case a query)
Pascal > -----Original Message----- > From: Ewok [mailto:[EMAIL PROTECTED] > Sent: 26 October 2004 15:52 > To: CF-Talk > Subject: RE: Accessing a query in an array > > Wouldn't it just be ArrayName[1][2]? > > <cfset test = ArrayNew(2)> > <cfset test[1][1] = "One One"> > <cfset test[1][2] = "One Two"> > <cfset test[2][1] = "Two One"> > <cfset test[2][2] = "Two Two"> > > <cfoutput>#test[1][2]#</cfoutput> > > --- OR --- > > <cfoutput> > <cfloop from="1" to="#ArrayLen(test)#" index="i"> > <cfloop from="1" to="#ArrayLen(test[i])#" index="ii"> > #Test[i][ii]#<br> > </cfloop> > </cfloop> > </cfoutput> > > > -----Original Message----- > From: Daniel Farmer [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 26, 2004 9:35 AM > To: CF-Talk > Subject: Accessing a query in an array > > I know that I should know this. but it escapes me at the moment. > > I need to access my 2nd array element ( which is a query object ). > [1][1] = "Some String" > [1][2] = Query Object > > How do I properly reference it for looping purposes? > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182605 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

