On 4/15/05, Mark Kecko <[EMAIL PROTECTED]> wrote: > If I use the variables scope as suggested below, without the "instance = > structNew();" how to I pass back the structure using cfreturn at the > bottom of my function? I tried <cfreturn this> and was unsuccessful.
Best practice suggests that init() return this and that the returntype= specify the name of the component (so you pass back the component itself, not a struct containing the CFC's data). Why would you pass back private data like that? It breaks encapsulation. -- Sean A Corfield -- http://corfield.org/ Team Fusebox -- http://fusebox.org/ Got Gmail? -- I have 50, yes 50, invites to give away! "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Purchase Flash MX Pro from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=57 Message: http://www.houseoffusion.com/lists.cfm/link=i:12:6739 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/12 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:12 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.12 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
