My general rule of thumb is to scope all variables except local variables.
It makes a big difference in how readable the code is (especially if it
isn't your code, or you haven't dealt with it in awhile.)  It's also
quicker for CF to know what scope to use instead of looping through the
possible list of scopes to find the right one.

Sharon

At 01:05 PM 4/20/2000 -0400, Mike Amburn wrote:
>please correct me if i'm wrong, but based on input over the past few days
>
>variable scope required:
>  1) Server
>  2) Application
>  3) Session
>  4) Attributes
>  5) Caller
>
>variable scope not required, scanned in the following order:
>  1) local (i.e. Variables)
>  2) CGI
>  3) File (???)
>  4) URL
>  5) Form
>  6) Cookie
>  7) Client
>
>- is the above correct?
>- is there any difference in using Variables.x and not using it?
>- what are File variables?
>------------------------------------------------------------------------------
>Archives: http://www.eGroups.com/list/cf-talk
>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.eGroups.com/list/cf-talk
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.

Reply via email to