No, because you use the var keyword in the CFSET.  That means you get
a brand new copy of the 'q' variable for each function definition.

cheers,
barneyb

On Tue, Mar 11, 2008 at 1:48 PM, Che Vilnonis <[EMAIL PROTECTED]> wrote:
> Say you have a CFC with 6 functions. Each function has a structure like
>  this:
>
>  <cffunction>
>  <cfset var q = "">
>
>  <cfquery name="q" datasource="#application.dsn#"
>  cachedwithin="#CreateTimeSpan(1,0,0,0)#">
>  sql stuff here.
>  </cfquery>
>
>  <cfreturn q>
>  </cffunction>
>
>  Because each query is named "q" and cached, does "q" get overwritten as
>  different functions are called? Not sure exactly how this works with CFCs.
>  Thanks, Che
>
>
>
>  

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:301011
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to