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/ -----Original Message----- From: Leitch, Oblio [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 10:45 AM To: CF-Talk Subject: RE: "including" functions Well, I've isolated the issue a bit more. I guess what kills me is I can't do this: <cffunction> <cfinclude template="funcBody.cfm" /> <!--- where 'funcBody' contains all the code for the function ---> </cffunction> Instead, I have to do this: <cffunction> <cfargument ... /> <cfset var ... /> <cfset var result /> <cfinclude template="funcBody.cfm" /> <!--- where 'funcBody' only runs some code; make sure to use var'ed variables & use a predetermined return ---> <cfreturn result /> </cffunction> The first would be a bit more autonomous. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273131 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

