You're not daft, you just need to make sure you pass the object back from getMyRecord().
<cfset return THIS or the the object you're working on> Adrian http://www.adrianlynch.co.uk/ -----Original Message----- From: Leitch, Oblio Sent: 19 February 2008 19:47 To: CF-Talk Subject: returned component calling function question Ok, I should know this, but for some reason, I can't make my brain give me the answer. I want to do something like this: objCache.secretRecords.getMyRecord(1234).formatAsTable(). How would I do something like that? In this example, "objCache" is a shared-memory library for instantiated objects. The "secretRecords" is an object; the "getMyRecord" is a function in it. But, how do I pass a returned query (for example) into a function "formatAsTable"? Am I daft? TIA ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299350 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4