Well, this is good to know. However, I'm still running into trouble. Now that I've removed the functions to a subdirectory, all the code inside has to be modified to look for dependencies relatively. For example in my CFC, I instantiate another component in a subdirectory thus: component="subdir.component". However, when I remove the function to the same directory, I have to remove the "subdir." from the component location. In other words, even though the parent.cfc includes subdir/function.cfm, the function.cfm executes in context of 'subdir/', not '../'.
I can't decide whether this is good or bad. Certainly not expected. -----Original Message----- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 11:31 AM To: CF-Talk Subject: RE: "including" functions Ahhhh, I see what you are doing :) To solve this, just include the CFFunction tag in the INCLUDE file itself. This will still properly define the function within the parent CFC. And, since you have to have CFFunction tag to have VAR and what not, this will work fine. The THIS and VARIABLES scope will act just like you want them to. <cfcomponent> <cfinclude template="_fn_IsValid.cfm" /> <cfinclude template="_fn_HasErrors.cfm" /> <cfinclude template="_fn_OtherMethod.cfm" /> </cfcomponent> ....................... Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ This email message may contain privileged and/or confidential information. If you are not the intended recipient(s), you are hereby notified that any dissemination, distribution, or copying of this email message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this email message from your computer. CAUTION: The Agency of Human Services cannot ensure the confidentiality or security of email transmissions. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273251 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

