Ooops...

should be a square bracket at the end in place of the parentheses.

<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 30, 2006 11:06 AM
To: CF-Talk
Subject: RE: Must I Use Evaluate() Here?


<cfset temp = stcFilters["filter_"&i)>

<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Sung Woo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 30, 2006 10:50 AM
To: CF-Talk
Subject: Must I Use Evaluate() Here?


I have a structure called stcFilters.  In this structure, I have the
following values:

stcFilters.filter_1 = 100
stcFilters.filter_2 = 200

I want to show the value of these filters through a cfloop:

<cfloop index="i" from="1" to="2">
 <cfset temp = Evaluate("stcFilters.filter_#i#")>
 <cfoutput>#temp#</cfoutput>
</cfloop>

I can't seem to get around using the evil Evaluate -- can anyone help?  Much
thanks.





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251496
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to