Put quotes around the variable name, i.e.

<cfset "keith#dynamicpart#" = "No">

That should do the trick. 'though you may want to consider using a structure
instead ...

StructInsert(Keith, dynamicpart, "No")

Then you could acess it as
Keith.blue, Keith.red, Keith.green, etc.

</rob>

-----Original Message-----
From: Wurst, Keith D. [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 29, 2002 4:58 PM
To: CF-Talk
Subject: dynamic cfset


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? Thanks very
much for the help. Talk to you later.
Keith

______________________________________________________________________
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to