Well I placed all my UDFs in a central CFC that all my other CFCs extend. This practice makes sense to me but I do not know if it is the best way to go about it.


On Jun 1, 2004, at 10:22 AM, Dawson, Michael wrote:

If possible, I would put the functions in a CFC, then store the CFC in
the Application scope.  That would keep them in memory.

If you have other CFCs that might use the UDF CFC, you can pass a
reference to the necessary methods.

<cfset Application.Functions = CreateObject("component", "UDFs")>

...then...

<cfset myReturnVar = myMethod(Application.Functions, "myOtherArg")>

M!ke

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to