I tried something similar couple of years ago, basically it doesn't work. You could get away by just saying returntype="Any" but reason I abandoned idea was that extends attribute doesn't work with dynamic value.
If you have same situation as we did it's time to consider multiple instances of CF. It takes a while to properly understand that but gives you lots of flexibility. Tero Pikala -----Original Message----- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED] Sent: 15 February 2007 02:55 To: CF-Talk Subject: Variables in function returntype How can this be done? In application.cfm <cfset request.componentDirectory = "website.components"> Then in a component: <cffunction name="methodName" access="public" output="false" returntype="#request.componentDirectory#.ComponentName"> Basically I need the componentDirectory to be a variable .. is this possible at all? Thanks Paul Giesenhagen QuillDesign http://www.quilldesign.com 417-885-1375 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269901 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

