Barney, What if you hack your own "executionMode" variable:
<cfset sExecutionMode = this.executionMode> <cfif bUseCache AND sExecutionMode EQ "start"> <cfset sExecutionMode = "end"> </cfif> <cfswitch expression="#sExecutionMode#"> <cfcase value="start"> </cfcase> <cfcase value="end"> </cfcase> </cfswitch> -Dan >-----Original Message----- >From: Barney Boisvert [mailto:[EMAIL PROTECTED] >Sent: Thursday, August 25, 2005 1:12 PM >To: CF-Talk >Subject: Re: Stupid custom tag question > >A clever idea, but CF throws an error saying the variable is >read-only, and can't be set by the user. Bummer. > >On 8/25/05, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote: >> Barney, >> >> >Thanks for that, Dan, but I'd actually mistyped. I wanted the closing >> >tag to still execute, just skipping the body. Not surprisingly, I was >> >also writing a caching tag, the difference being that the cached >> >content were generated Flash movies, so the "output" operation (which >> >takes place in the close tag) is rather cumbersome and I didn't really >> >want to UDF it so I could call it in both starting and ending tags. >> >> That's what I was going to recommend next. The only thing that I can >think >> of that might work, is can you change the executionMode? >> >> What if you did: >> >> <cfif bUseCache AND this.executionMode EQ "start"> >> <cfset this.executionMode = "end"> >> </cfif> >> >> I wonder if that would have work.... >> >> -Dan >> > >-- >Barney Boisvert >[EMAIL PROTECTED] >360.319.6145 >http://www.barneyb.com/ > >Got Gmail? I have 50 invites. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216398 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54