<cfset vari = "res_" & i>
<cfoutput>#evaluate (vari)#</cfoutput>
>I have variables and want to output their assigned value in a loop.
>This is the idea:
>
><cfset res_1 = "result1">
><cfset res_2 = "result2">
><cfset res_3 = "result3">
>
><cfloop index="i" from="1" to ="3">
> <cfoutput>#res_# & #i#</cfoutput>
></cfloop>
>
>How is this done?
>THANKS
>
>[<http://www.houseoffusion.com/lists.cfm/link=t:15>Todays Threads]
>[<http://www.houseoffusion.com/lists.cfm/link=i:15:286>This Message]
>[<http://www.houseoffusion.com/lists.cfm/link=s:15>Subscription]
>[<http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=12591.11436.15>Fast
>Unsubscribe] [<http://www.houseoffusion.com/signin/>User Settings]
>[<https://www.paypal.com/cgi-bin/webscr?amount=&item_name=House+of+Fusion&business=donations%40houseoffusion.com&undefined_quantity=&cmd=_xclick>Donations
>and Support]
>
><http://www.houseoffusion.com/banners/view.cfm?bannerid=40>
--
Daniel Kessler
Department of Public and Community Health
University of Maryland
Suite 2387 Valley Drive
College Park, MD 20742-2611
301-405-2545 Phone
www.phi.umd.edu
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
