Actually, Viktor's construction *does* work, except he's got a typo there. It should be: "Variables.#VariableforVariablename#" = 1; I've used it successfully before.
Regards: Ayudh +--------------------------------------------------------------+ | Turn on your Revenue Stream... | | Bolt on a Virtual Cash Register to your e-commerce site now. | | VeriPay from Xilo Online: http://www.xilo.com | +--------------------------------------------------------------+ ----- Original Message ----- From: "Mark M" <[EMAIL PROTECTED]> To: "CFAussie Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, February 23, 2003 11:42 Subject: [cfaussie] Re: Dynamically naming vars in cfscript? > Pretty sure that doesn't work. > > Script will assume it's a string, and not a variable name, and throw an > error. > > Mark > > -- > [EMAIL PROTECTED] > ICQ: 3094740 > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Viktor > Radnai > Sent: Sunday, 23 February 2003 12:17 PM > To: CFAussie Mailing List > Subject: [cfaussie] Re: Dynamically naming vars in cfscript? > > I have a feeling that this would work too: > "Variable.#VariableforVariablename#" = 1; > > I can't test it right now but give it a go... > > > Mark M wrote: > > *SetVariable*(/name/, /value/) > > > > > > > > Straight outta the docs. > > > > > > > > Mark > > > > > > > > -- > > > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > > > ICQ: 3094740 > > > > > > > > > > > > -----Original Message----- > > *From:* [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] *On Behalf Of *Taco > Fleur > > *Sent:* Sunday, 23 February 2003 12:08 PM > > *To:* CFAussie Mailing List > > *Subject:* [cfaussie] Dynamically naming vars in cfscript? > > > > > > > > Is it possible to dynamically name variables in cfscript? if so, how? > > > > --- > > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > > To unsubscribe send a blank email to > [EMAIL PROTECTED] > > > > MX Downunder AsiaPac DevCon - http://mxdu.com/ > > > > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > > MX Downunder AsiaPac DevCon - http://mxdu.com/ > > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > > MX Downunder AsiaPac DevCon - http://mxdu.com/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
