Okay, that works too- and it's a little shorter... I like it-
Thanks!

>
> Actually, there is a shorthand for this:
>
> change:
> <cfset Evaluate('#show#') = "allUsers">
> to:
> <cfset "#show#" = "allUsers">
>
>
> ----- Original Message -----
> From: "Raymond Camden" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Friday, March 01, 2002 2:36 PM
> Subject: RE: assigning a value to a dynamic variable?
>
>
> | 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 Macromedi
a
> |
> | 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>
> | >
> | >
> | >
> | >
> |
> _____________________________________________________________________
_
> 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=coldfusiona
> 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
>
______________________________________________________________________
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=coldfusiona
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