I only use this syntax on rare occasions, so I can never remember it. I have a query that I am looping over. The loop does not know the columns in the query, so there is a inner loop inside that loops over the list of columns. The current column is stored in the index variable of the inner loop and I am trying to display the contents of the query cell.
<cfloop query="variables.myQuery"> <cfloop list="variables.myQuery.columnList" index="columnName"> <cfoutput>#variables.myQuery.???columnName???#</cfoutput><br/> </cfloop> </cfloop> What is the correct syntax for the <cfoutput statement above? I know I can use evaluate, but I thought there was another array like syntax that could be used here that performed better than evaluate. Thanks. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259016 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4