this can be built rather simply. 1. add to your Application.cfc in the OnRequestStart function <cfset request.loadedFunctions = ArrayNew(1) /> 2. change all of your functions to read like this:
<cfif not ListFindNoCase(ArrayToList(request.loadedFunctions,'[name of the function]',','))> .... your function declaration <cfset request.loadedFunctions = ArrayAppend(request.loadedFunctions, '[name of the function]') /> </cfif> this way you can call a function to your hearts content, but it will only load if it wasn't already loaded. hope this helps, William ---------- William E. Seiter On Jun 18, 2010, daniel kessler <dani...@umd.edu> wrote: I am receiving the error "Routines cannot be declared more than once", which is true. This function can be declared in multiple places so it's sort of difficult to track. Is there a way I can test and check whether a function is already declared (please say "yes, it's easy"? Can I query for a list of declared functions? Also, this is on a shared hosting server, if that makes any difference. thanks! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334660 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm