To set a dynamic variable, use setVariable:

<cfset show = "userID">
<cfset setVariable(show,"allUsers")>

You will still need evaluate to display it though.

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Louis Klepner [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, March 01, 2002 4:34 PM
> To: CF-Talk
> Subject: assigning a value to a dynamic variable?
> 
> 
> Can someone help me make this work?
> I'm not sure how to explain it clearly, so I'm hoping the 
> code/comments make
> sense...
> 
> <!--- assign show variable --->
> <CFSET show = "userID">
> 
> <!--- assign sub value to value set above --->
> <CFSET evaluate('#show#')= "allUsers" >
> 
> <!--- debugging output --->
> <CFOUTPUT>
> first variable: #show#<br>
> variable's variable: #evaluate('#show#')#<BR>
> </CFOUTPUT>
> 
> 
> 
> 
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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