Also if you are setting a dynamic variable, for instance setting whatever variable is 
contained within #name#, setvariable works nicely for that.  For example:

<CFSET temp = SetVariable('#variablename#', '#variablevalue#')>

You will return a variable with whatever is contained in #variablename# set to 
#variablevalue#.  Kinda neat huh?  

Gregory Harris
Los Angeles ITA Dept.
[EMAIL PROTECTED]

>>> [EMAIL PROTECTED] 07/11 7:47 AM >>>
It's more of a preference to use setVariables instead of cfset in some 
instances.  A lot of programmers who have been doing this for a while think 
it's really odd to see a variable on the left side of a cfset so they would 
use setvariables if they needed to assign a value using pointers.  Just 
about the only time there is a real advantage to not using cfset is when you 
are assigning three or more variables in a row in which case you should be 
using cfscript tags to assign the variables.  cfscript runs faster than 
multiple cfsets.

Rob Flesher
Cold Fusion Applications Developer
HLP Associates, Inc.
[EMAIL PROTECTED] 



>From: Won Lee <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED] 
>To: "cf-talk (E-mail)" <[EMAIL PROTECTED]>
>Subject: cfset vs setVariables
>Date: Tue, 11 Jul 2000 10:18:07 -0400
>
>Can someone please explian when it would be more advantageous to use
>setVariables instead of cfset?
>
>
>Won Lee
>Allaire Certified ColdFusion 4.5 Developer
>Systems Consultant
>New Channel Technologies
>(330) 220-1558
>[EMAIL PROTECTED] 
>
>"Turning ideas into e-Business"
><allaire> Premier Partner
>
>
>------------------------------------------------------------------------------
>Archives: http://www.mail-archive.com/[email protected]/ 
>To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or 
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in 
>the body.



________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com 

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/ 
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to