> I am working on a site where I need to use a cfset inside a 
> cfloop. The tricky part is that I want my variable name to 
> be dynamic. I have been trying the following...
> 
> <cfset keith#dynamicpart# = "No">
> 
> ..but as some of you might guess it's not working. The idea 
> would be to get the result of 
> 
> Keithblue = "No"
> Keithred =  "No"
> Keithgreen = "No"
> 
> etc, etc.
> 
> Can anyone point me in a better direction to get this 
> working?

You can do either of the following:

<cfset "keith#dynamicpart#" = "No"> 
<cfset rs = SetVariable("keith" & dynamicpart, "No")>

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to