When: always. Why: otherwise, you could have the variables leak out of the function in which they are declared.
The var scope keeps them local to the function. On Fri, Mar 14, 2008 at 6:50 PM, D Simcik <[EMAIL PROTECTED]> wrote: > I'm using it to declare variables at the top of my CFC's, but I am > wondering really when/why this should scope be used as a best practice. > > Thanks, > DS > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301344 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

