> is this possible?
> 
> cfoutput
> cfset field#x# = '#somevalue#'
> /cfoutput
> 
> I am in a cfloop. I want to create a field named field#x# 
> for the loop occurrence I am in.

Yes. You can do it like this:

<cfset "field#x#" = somevalue> (note that you don't need the quotes or
hashes with "somevalue" in your example)

Or, you can use the SetVariable function:

<cfset rs = SetVariable("field" & x, somevalue)> (note that the "rs"
variable is a dummy variable; the variable actually created will be the same
as in the first example)

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to