stcFilters['filter_#i#'] works
Sung Woo wrote:
> 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:251486
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4