Matt, >So from Massimo and Ray's suggestions, it can it work. > ><cfset getter = "FirstName" /> ><cfinvoke component="#myObject#" method="get#getter#" >returnvariable="theFN" >/> ><cfoutput>#theFN#</cfoutput> > >No errors and output as expected. > >But it seems the other should be possible too? Have I stumped the >CF-Talkers?
You could always wrap the <cfinvoke /> tag into a UDF so you could use it from a cfscript block. invoke(myObject, "get#getter#"); You'd need to do a little work to pass in arguments, but it's definitely do-able. -Dan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238025 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54