I just ran a test on CFMX 6.1 and I'm not sure if it's exactly the same or
not, here's the order I received:

1. variables 
2. url 
3. form 
4. cookie 
5. client 

...but: request, application, and query scoped values are not read.

Try:

<cfset request.Bob="request"><!--- or switch out application for request
--->
<cfoutput>Bob = #Bob#</cfoutput>

Or:

<cfscript>
Test=QueryNew("Bob");
QueryAddRow(Test, 1);
QuerySetCell(Test, "Bob", "query", 1);
</cfscript>
<cfoutput>Bob = #Bob#</cfoutput>

Both examples throw an error. Is this how CF5 was? I always thought request
vars, at least, would creep a little into the local vars territory...

Tyler

----Original Message----- 
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 15, 2003 4:45 PM
To: CF-Talk
Subject: RE: CFMX scope searching ?

> I remember hearing somewhere that CFMX searched scopes differently, 
> like maybe it wouldn't search scopes at all anymore, you always had to 
> use Form.name instead of just using 'name' and letting it find it in 
> the Form scope (I know it's best pratice to scope anyway).
> 
> Is there any truth to this or am I just making it up? Anyone have a 
> URL that states this?  I searched but couldn't find anything.

To the best of my knowledge, this isn't true. However, it'll take you about
five minutes to knock up an example which will tell you exactly what's going
on:

<cfset Form.foo = "form">
<cfset URL.foo = "url">

<cfoutput>#foo#</cfoutput>

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Reply via email to