At 04:11 PM 6/26/2002 -0400, you wrote:
> >   Theoretically, the attributes scope is only available in custom tags.
> >   However, if in the application.cfm you create a variable like this:
> >
> > <cfset attributes.myvar = "myvalue">
> >
> >   I am not sure how ColdFusion reacts.
>
>I haven't worked with anything later than CF 4.51 yet, but in both 4.0 and
>4.5 you can use the Attributes scope just as you would any other non-shared
>scope (variables, request, etc).  You can create variables in the Attributes
>scope on the fly, in application.cfm, or in any other template for that
>matter.
>
>FWIW,
>Seth

  Yes, but is it truely adding a variable to the scope?
  Or is it just creating a local variable named "attributes.myvar"?   ( 
Anyone, anyone, Ray?)

   I just tested in CFMX, and I saw the actions I expected to see.  A 
structure named Attributes is created in the local variable scope:

<cfset attributes.MyVar = "Test">
<cfdump var="#variables#">

  However, I do not have any other versions installed to test against.  ( 
And CFDump doesn't work in versions previous to CF5).



--
Jeffry Houser | mailto:[EMAIL PROTECTED]
Need a Web Developer?  Contact me!
AIM: Reboog711  | Fax / Phone: 1-203-379-0773
--
My CFMX Book: 
<http://www.amazon.com/exec/obidos/ASIN/0072225564/instantcoldfu-20>
My Books: http://www.instantcoldfusion.com
My Band: http://www.farcryfly.com 

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to