:p I would personally say that to scope limit the variable during 
checking/setting is a good practice to get into and be shown.







-----Original Message-----
From: Adrian Lynch
To: CF-Newbie
Sent: Sun Aug 19 02:11:55 2007
Subject: RE: What does this line do? session.siteSection = "#sec#"

Better practice, convenience, who's to say :OD

-----Original Message-----
From: Robertson-Ravo, Neil (RX)
Sent: 18 August 2007 14:11
To: CF-Newbie
Subject: Re: What does this line do? session.siteSection = "#sec#"


True, but is it better practice to check and define scope?  I would say so.

-----Original Message-----
From: Adrian Lynch
To: CF-Newbie
Sent: Sat Aug 18 14:05:31 2007
Subject: RE: What does this line do? session.siteSection = "#sec#"

But they might not want to only check in the variables scope, form, url etc.

Adrian

-----Original Message-----
From: Robertson-Ravo, Neil (RX)
Sent: 18 August 2007 12:04
To: CF-Newbie
Subject: Re: What does this line do? session.siteSection = "#sec#"


It could also be "simplified" to

<cfset session.siteSection = variables.sec>

-----Original Message-----
From: Tom Hines
To: CF-Newbie
Sent: Sat Aug 18 05:49:28 2007
Subject: What does this line do? session.siteSection = "#sec#"

<CFIF ISDEFINED("sec")>
        <cfset session.siteSection = "#sec#">
</CFIF>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3008
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to