Leon,
<cfloop list="a,b,c,d" index="i">
<!--- create the variable --->
<cfset "#i#_ListVals"="#i#">
<!--- output the variable --->
<cfoutput>#evaluate("#i#_ListVals")#</cfoutput>
</cfloop>
Joseph DeVore
VeloxWeb Technologies
-----Original Message-----
From: Leon Greeff [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 1:50 AM
To: CF-Talk
Subject: Evaluate function
Hi there,
I am trying to use the evaluate function to output dynamically created
variables. Ex. I have a list say list=a,b,c,d I want to create variables
from it.
loop through list a,b,c,d
I want to create variable named a_ListVals and b_ListVals and c_ListVals
etc.
Can someone give me some advice how to do it.
TIA
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
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