> He wants the actual name of the target method to be dynamic.

I usually prefer dot notation, but <cfinvoke> can offer some extra
flexibility that fits this scenario:

<cfset obj = CreateObject("component", "foo").init() />
<cfset methodName = "fooMethod" />
<cfinvoke component="#obj#" method="#methodName#" returnvariable="ret" />

Massimo


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to