You can also do evaluate(#var2#)

L.

On 3/12/03 3:45 pm, "Rich Wild" <[EMAIL PROTECTED]> wrote:

> yup, although there you setting var2's value to a string containing the
> alphanumeric data "var1", not the value of var1 itself.
> 
> instead, simply do this:
> <cfset var1 = "test">
> <cfset var2 = var1>
> 
> <cfoutput>#var2#</cfoutput>
> 
>> -----Original Message-----
>> From: Bo Jiang [mailto:[EMAIL PROTECTED]
>> Sent: 03 December 2003 14:50
>> To: [EMAIL PROTECTED]
>> Subject: [ cf-dev ] variables in CF
>> 
>> 
>> Hi,
>> 
>> I just wonder if I can use a variable to quote another
>> variable. For example:
>> 
>> <cfset var1="test">
>> <cfset var2="var1">
>> 
>> Is that possible to use var2 to get the value of var1?
>> 
>> Cheers
>> 
>> Bo
>> 
> 


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to