The request scope is a global scope and I try to keep things out of a global scope unless they should be truly global. Here, it seems to me, we don't want it global; we just want it in the local scope.
-----Original Message----- From: Steve Bryant [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 11:31 AM To: [EMAIL PROTECTED]; Fusebox list Subject: Re: Just a tip... That is spiffy! But what is the advantage of this over request scope? At 10:05 AM 4/8/2002 -0400, hal helms wrote: >I was working with John Q the other day and showed him something that >some of you might find interesting. When calling the fusebox as a >custom tag (e.g. <cfmodule template="#Fusebox.rootPath##self#" >fuseaction="Home.main">), I find it helpful to have this code in my >FBX_Settings.cfm file: > ><cfif Fusebox.isCustomTag> > <cfset Scope="Caller"> ><cfelse> > <cfset Scope="Variables"> ></cfif> > >Now, when I have fuses that may be invoked either through a custom tag >call or a normal cfinclude call, I can do something like this: > ><cfset SetVariable( Scope & .myName, 'Hal Helms' )> > >FWIW. ==^================================================================ This email was sent to: [email protected] EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9 Or send an email to: [EMAIL PROTECTED] T O P I C A -- Register now to manage your mail! http://www.topica.com/partner/tag02/register ==^================================================================
