Do you mean something like this...
<cfloop list="#colors#" index="color">
<cfset "#color#" = whatever />
</cfloop>
-- Josh
----- Original Message -----
From: "Steve Good" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Monday, May 05, 2008 7:27 PM
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:304777
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4