well i wasnt sure before, but you can do this then instead. instead of <CFSET application.MyFunc = MyFunc >
try <CFSET application.MyFunc = variables.myfunc /> That should work. (it just did on my machine) On 9/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Ryan, > > Thanks. I know that I can do that. I need to find out if there's a way to > put it in the application scope WITHOUT using a component. > > Thanks, > > Dave > > -----Original Message----- > From: Ryan Guill [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 13, 2005 12:26 PM > To: CF-Talk > Subject: Re: Storing UDF in application scope > > > put it in a component, and then create an object of the component in > the application scope. It wont be directly in the application scope, > but in a variable in the application scope. > > application.myudfs.myudf() > > On 9/13/05, Dave Phillips <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I want to store a UDF in the application scope. Anyone know a trick to this > > and/or any issues regarding it? Here's what I tried that didn't work: > > > > <cfscript> > > function MyFunc() { ...function definition... } > > </cfscript> > > <CFLOCK SCOPE="application" TYPE="exclusive" TIMEOUT="10"> > > <CFSET application.MyFunc = MyFunc > > > </CFLOCK> > > > > I get a "MyFunc" doesn't exist error. I'm sure there's a trick to this, > > but I haven't found it yet. > > > > Thanks, > > > > Dave > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218042 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

