For cfinvoke to use an object instance,just do component="#inst#"
instead of component="somename" On 4/18/06, Matt Williams <[EMAIL PROTECTED]> wrote: > Dan, > > This was close, but acts strange. I can do the following: > <cfoutput> > #myObject.getFirstName()# --- outputs correctly. > <cfset getter = "FirstName" /> > <cfset doMethod = myObject["get" & getter] /> > <cfset myFN = doMethod() /> --- throws error > #myFN# > </cfoutput> > > The error thrown by the doMethod() line is coming from the Object CFC. It > says it that variables.FirstName is not defined, which is what the getter is > getting. It is as though it doesn't recognize it as the same object. > > Massimo - I don't use cfinvoke much as I'm usually within a cfscript block. > However I'm not against trying it. How does cfinvoke refer to an object > instance. In my sample code I'm using myObject as that is a reference to an > already instantiated object (actually it is an object passed to the function > of another object). > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238014 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54