#countryName[region][countryName.currentrow]#
-----Original Message----- From: Protoculture [mailto:[EMAIL PROTECTED] Sent: 23 March 2005 11:15 To: CF-Talk Subject: nesting variables... I have defined a variable earlier in my template titled region. and it equals a string of my location... ie. CAN or US. I also have a query titled countryName. <cfquery name="countryName" datasource="#datasource#"> select #region# from location where id = #form.location# </cfquery> So how could I use that region varible in order to access the data retrieved from my query like so below ( both versions throw an error )... #countryName[region]# OR #countryName[#region#]# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199748 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

