And for those who prefer structure notation, the following also works:
<cfset variables[switchhitter] = ...
- Jeff
On 12 Jun 2002 at 16:16, Bob Krieger wrote:
> Brian... just ask...
>
> rewrite it to read <cfset "Variables.#switchhitter#" = .....
> Put the dynamic variable name in quotes
>
>
> Bob Krieger
> www.FBTutor.com
> The FuseBox Tutor
>
>
> ----- Original Message -----
> From: "Falls, Brian, CON, OASD(HA)/TMA" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 12, 2002 3:06 PM
> 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
==^================================================================