ChiefJoseph
Programmer
Hey guys,
Heres the deal, I want to dynamically populate an array then output it later. Now my C++ brain tells me to do it this way.
<CFSET days=ArrayNew(1)>
This is where i populate the array
<CFSET n=0>
<CFLOOP CONDITION="n LT endday">
<CFSET days[n]="n"> THIS IS WHERE I GET THE ERROR
<CFSET n=n+1>
</CFLOOP>
This is the output
<CFSET n=0>
<CFLOOP CONDITION="#n# LT 7">
<td width='#twidth#' bgcolor='#weekbg#' align='center' valign='middle'><font face='#weekfam#' size=#weeksize# color=#weekcol#><b>
#days["#n#"]#
</b></font></td>
<CFSET n=n + 1>
</CFLOOP>
I searched the archive questions and didn't I couldn't find anything. Any help would be helpfull.
Heres the deal, I want to dynamically populate an array then output it later. Now my C++ brain tells me to do it this way.
<CFSET days=ArrayNew(1)>
This is where i populate the array
<CFSET n=0>
<CFLOOP CONDITION="n LT endday">
<CFSET days[n]="n"> THIS IS WHERE I GET THE ERROR
<CFSET n=n+1>
</CFLOOP>
This is the output
<CFSET n=0>
<CFLOOP CONDITION="#n# LT 7">
<td width='#twidth#' bgcolor='#weekbg#' align='center' valign='middle'><font face='#weekfam#' size=#weeksize# color=#weekcol#><b>
#days["#n#"]#
</b></font></td>
<CFSET n=n + 1>
</CFLOOP>
I searched the archive questions and didn't I couldn't find anything. Any help would be helpfull.