The variables from within the CFC will NOT go to the application scope. They belong to the CFC itself. Also, I doubt very much that you'll find many that will condone using returnvariable="application" .
HTH Matt On 1/12/07, Kay Smoljak <[EMAIL PROTECTED]> wrote: > > I was experimenting with a CFC that returns a struct. I tried setting the > returnvariable directly to the application scope like this: > <cfinvoke component="cfc.config" method="SetVariables" > returnvariable="application"> > > I didn't think it would work, but it seems to - almost. If I cfdump > #application.myvar#, for example, the value is displayed. But if I cfdump > the entire application scope, the variables from the CFC are nowhere to be > seen. > > So my question is: is this a bad practise? Is there a reason not to the > what I've done here? This is on 7.0.2, if that matters. > > Thanks! > Kay. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 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:266478 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

