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?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=38
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182604
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