OK, I'm an idiot! I actually asked almost the same question a month and a half ago! Here's the solution:
<cfwddx INPUT="#cookie.termROOMS#" output="roomVAR" ACTION="wddx2cfml"> <cfoutput> <cfloop from=1 to=#ArrayLen(roomVAR)# index=i> #roomVAR[i][1]#<br> #roomVAR[i][2]#<br> #roomVAR[i][3]#<br> #roomVAR[i][4]#<br> ***************<br> </cfloop> </cfoutput> :<>: -----Original Message----- :<>: From: Les Mizzell [mailto:[EMAIL PROTECTED] :<>: Sent: Saturday, August 23, 2003 10:13 PM :<>: To: CF-Talk :<>: Subject: Looping through an Array.... :<>: :<>: :<>: I'm having some trouble on the OUTPUT end of this: :<>: :<>: I'm setting up an array and passing the values to a cookie :<>: using cfwddx for :<>: use on any number of pages within a site, like so: :<>: :<>: <cfoutput query="PYPRY"> :<>: <cfset roomVAR[ArrayLen(roomVAR)+1][1] = "#trim(PYPRY.PRYDSC)#"> :<>: <cfset roomVAR[ArrayLen(roomVAR)][2] = "#trim(QD2.RecordCount)#"> :<>: <cfset roomVAR[ArrayLen(roomVAR)][3] = "#trim(PYPRY.PRYPTYID)#"> :<>: <cfset roomVAR[ArrayLen(roomVAR)][4] = "#trim(PYPRY.PRYSID)#"> :<>: </cfoutput> :<>: :<>: <!--- AND LET'S PUT ALL THAT CRAP INTO A CFWDDX COOKIE ---> :<>: <cfwddx input="#roomVAR#" output="darooms" action="CFML2WDDX"> :<>: <cfcookie name="termROOMS" value="#darooms#"> :<>: :<>: :<>: So far so good, no errors. :<>: :<>: #ArrayLen(roomVAR)# is showing the proper array size...so I :<>: know it's all in :<>: there. :<>: :<>: :<>: I decode the thing on whatever page needed first: :<>: <cfwddx INPUT="#cookie.termROOMS#" output="roomVAR" ACTION="wddx2cfml"> :<>: :<>: :<>: OK, now how do I OUTPUT this this thing using a loop to show it all? :<>: Nothing I've tried so far seems to be working correctly.... :<>: :<>: Something like the below errors out: :<>: :<>: <cfoutput> :<>: <cfloop collection="#roomVAR#" item="NOT SURE WHAT GOES HERE!!!"> :<>: #roomVAR[ArrayLen(roomVAR)+1][1]#<br> :<>: #roomVAR[ArrayLen(roomVAR)][2]#<br> :<>: #roomVAR[ArrayLen(roomVAR)][3]#<br> :<>: #roomVAR[ArrayLen(roomVAR)][4]#<br> :<>: </cfloop> :<>: </cfoutput> :<>: :<>: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com