try this at the beginning
<cfset "Variables.#switchhitter#" otherwise, it will blow up trying to evaluate the dynamic variable on the left side of the = sign in the set -----Original Message----- From: Falls, Brian, CON, OASD(HA)/TMA [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 4:06 PM To: '[EMAIL PROTECTED]' Subject: Slightly O/T Variable Woes <cfset Variables.#switchhitter#= ReplaceNoCase(evaluate("Variables.#switchhitter#"), "#VariableArray[Loopcounter][1]#", "#VariableArray[LoopCounter][2]#")> In the statement above the Variables.#switchhitter# behind the cfset is crashing. I have tried using evaluate all kinds of different ways, but this is just escaping me. Switchhitter is the index for a list loop. It loops three times to assemble a dynamic email message. I can get the loop to work if this variable is hard coded. I know it is something simple, but it's 20 minutes before days end, and I am feeling fried. Can someone throw me a bone here? Here is the error message: Just in time compilation error Invalid parser construct found on line 71 at position 18. ColdFusion was looking at the following text:. Invalid expression format. The usual cause is an error in the expression structure. ==^================================================================ This email was sent to: [email protected] EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9 Or send an email to: [EMAIL PROTECTED] T O P I C A -- Register now to manage your mail! http://www.topica.com/partner/tag02/register ==^================================================================
