It's also handy to create your own scope.
<cffunction>
<cfset var LOCAL = {}>
<cfquery name="LOCAL.myQuery">
</cfquery>
</cffunction>
It saves having to scope the lot up top.
Adrian
-----Original Message-----
From: James Buckingham
Sent: 11 April 2008 13:34
To: CF-Talk
Subject: Re: var variables in an application.cfc
Thanks guys,
I do remember reading about that but I took it to mean that if anything is
needing declared within the function it should have var. I didn't read it as
anything local to the function should be :-). Good, thanks for clarify that.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303185
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4