you need to do it dynamically like this

either

<cfset "Session.#EziFieldName#"  = Variables[EziFieldName]>
or
<cfset Session[EziFieldName]  = Variables[EziFieldName]>

Steve

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Eugene
Gorman
Sent: Friday, March 12, 2004 1:03 AM
To: CFAussie Mailing List
Subject: [cfaussie] setting variables


Hello,

I having problems with this line of code:

<cfset Session.#EziFieldName#  = Evaluate("Variables.#EziFieldName#")>

I know this won't work but it is the best way I can think of explaining
what I want to do.

#FieldName# holds the name of another field that I want to access.

I want Session.#FieldName# to hold the value of Variables.#FieldName#

here is ruffly what I am trying to do.


<cfoutput query="EziFieldDetails">
        <cfset ignore = SetVariable("Variables.#FieldName#",
"#FieldDetails.SupplierFieldName#")>

        <cfset Session.#FieldName#  = Evaluate("Variables.#FieldName#")>

</cfoutput>


Does any one have any ideas on what I can do? Does anyone have any idea
what I am trying to say? :)

Best Regards,
Eugene Gorman
http://www.velvetsystems.com


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to