I must have missed where this thread diverged, but if you just need a way to make sure a given function isn't declared more than once, check out the Tapestry API:
http://www.turnkey.to/tapi You may not want to use the whole thing, but it'll show you how to place your function declaration in an include file and use a request structure to ensure that include isn't duplicated within the request. hth Isaac Original Message ----------------------- Not a solution to all your problems :-) .... but.... >> but I've no idea. Instantiating an object can take ages. If CFMODULE'ing >> a template that includes, say common.cfm, and the CFMODULE'ing template >> includes the same file and in that file are funcitons, then a >> function cannot be declared twice' error is raised and I can find no >> way around it. <!--- Only include validation functions if not already included ---> <cfif (IsDefined("udfValidate") AND IsCustomFunction(udfValidate)) EQ False> <cfinclude template="#APPLICATION.sIF_PublicVirtualPath#/includeElmnt/inc_if_valida tion_functions.cfm"> </cfif> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

