> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 13, 2005 11:40 AM
> To: CF-Talk
> Subject: Storing UDF in application scope
> 
> 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>

It seems like it should work... I'm not sure if it was required (I forget)
but in my code I specify the scope:

<cfset Request.IndexSelect = Variables.IndexSelect>

Also, and I doubt this is a problem... but who knows?, I don't use
<CFSCRIPT> but rather <CFFUNCTION>.

But in general what you have should work.

Jim Davis





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:218049
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

Reply via email to