Correct.  Unless the variable is deleted (like the occasional scenario
Ben Mentioned) the cfquery will use the variable already declared.  Also
note that CF does an implicit conversion from a string data type to a
query.  Quack quack.

~Brad

-----Original Message-----
From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 17, 2006 1:48 PM
To: CF-Talk
Subject: Re: CFC oddness

> <cffunction ...>
> <cfargument ...>
> ...
> <cfset var q1 = "">

So Dave the line above tells CF that any variable with that name (q1)
will 
remain local to this method (and the cfquery call below with the same
name 
doesn't change it's "scope/keyword/whatever")?

> ...
> <cfquery name="q1" ...>
> ...
> <cfreturn q1>
> </cffunction>

Thanks

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257083
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to