[thelist] CF: Values from Dynamically Generated Col Names?!

Joshua Olson joshua at waetech.com
Mon Jan 5 08:03:55 CST 2004


----- Original Message ----- 
From: "Frank" <lists at frankmarion.com>
Sent: Sunday, January 04, 2004 6:39 AM


> <cfloop query="categories"> <!--- Builds the rows --->
>
>     <cfloop index="cnt" from="1" to="100"> <!--- Builds the columns --->
>
>        <cfset cell_name="c_#NumberFormat(cnt, '000')#">
>        <input type="text" name="#cell_name#" value="#cell_name#">
>
>     </cfloop>
>
> </cfloop>

Frank,

Use the bracket syntax for accessing queries...

<cfset cell_name="c_#NumberFormat(cnt, '000')#">
<input type="text" name="#cell_name#"
value="#categories[cell_name][currentrow]#">

Good luck,

<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com/service_areas/FL/
706.210.0168



More information about the thelist mailing list