great minds Raymond , great minds... WG
> -----Original Message----- > From: Raymond Camden [mailto:[EMAIL PROTECTED]] > Sent: 17 December 2002 16:33 > To: CF-Talk > Subject: RE: CFlock in CFScript > > > You can't. However, you could write a UDF to act as a wrapper. For > example, if you wanted to get foo from the application scope and wanted > a readOnly lock.... > > (fyi, I'm writing this code pretty quickly, so forgive any typos) > > <cffunction name="applicationRead" returnType="any" output=false> > <cfargument name="variable" type="string" required=true> > <cflock scope="application" type="readOnly" timeout=3> > <cfreturn application[variable]> > </cflock> > </cffunction> > > Of course, remember that for most cases, you won't need the locks in MX > anyway. > > ======================================================================= > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc > > Email : [EMAIL PROTECTED] > WWW : www.camdenfamily.com/morpheus > Yahoo IM : morpheus > > "My ally is the Force, and a powerful ally it is." - Yoda > > > -----Original Message----- > > From: Ben Doom [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, December 17, 2002 10:20 AM > > To: CF-Talk > > Subject: CFlock in CFScript > > > > > > I asked this before, but it never landed in my inbox (nor did > > any replies) so I'll ask again. > > > > Is it possible to lock application, session, etc. variables > > in a cfscript? If so, how? > > > > I'm guessing it's not, but it would make my life easier and > > my code cleaner in at least one instance. :-) > > > > > > > > --Ben Doom > > Programmer & General Lackey > > Moonbow Software > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm