If I understand you correctly, try this:
<cfloop list="red,green,blue,yellow" index="i">
<cfset variables[i] = 'whatever' />
</cfloop>
<cfdump var="#variables#" />
..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com
-----Original Message-----
From: Steve Good [mailto:[EMAIL PROTECTED]
Sent: Monday, May 05, 2008 10:27 PM
To: CF-Talk
Subject: create variables from a string
Is there a way to create named variables from a dynamic list (the list
doesn't always have the same number of elements)?
One instance might be:
red,green,blue,yellow
becomes
#red#,#green#,#blue#,#yellow#
Or would this just be easier to do with listGetAt()?
Thanks!
~Steve
http://lanctr.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304782
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4