I disagree.

Why is it "better"?  SetVariable is just another redundant function to
learn, another syntax to look up.  I believe there actually IS some
circumstance where you MUST use it, but I just can't recall when.

<CFSET "edname#numvar#" = "test"> does exactly what you would expect and
hope.  It's simple (as in Occam's Razor simple), elegant and effective.  Why
do string concatenation using ampersands instead of just embedding variables
inside your strings?  Is it a 'classier' technique, perhaps?

As with most languages, you only need to use 50% (or even less) of a CF's
functions to do 99% of the stuff that you would ever want to do.
Coincidentally, using just that 50% makes your code easier to work with for
other average mortals.

Everybody wins when you stick to basics!!

Lee (Bjork) Borkman
http://bjork.net ColdFusion Tags by Bjork


-----Original Message-----
From: JustinMacCarthy [mailto:[EMAIL PROTECTED]]
Using SetVariable is better

<cfset setvariable("Edname" & numvar, "test")>



IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee.  It is confidential and may contain legally privileged
information.  No confidentiality or privilege is waived or lost by any
mistaken transmission to you.  If you receive this e-mail in error, please
immediately delete it from your system and notify the sender.  You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient.  The RTA is not responsible for any unauthorised alterations to
this e-mail or attachment to it.  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
https://secure.houseoffusion.com

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to