I didn’t find an answer to this question because I don’t know if I’m expressing the problem correctly.
It’s quite simple. I have this code:
<cfset queryAddRow(sday.morning) />
and I need something like this instead:
<cfset tday = "morning" />
<cfset queryAddRow(sday.tday) />
Is there any easy way to do this?
Assuming sday.morning is a query, then you can use associative array notation to reference the key dynamically:
where ‘key’ is a variable holding name of the key. In your case the code to use would be: