you might be able to do an Evaluate type thing on it but I doubt it.

<cfset Evaluate("my_obj[#method#]")>

I haven't seen this done.


On Tue, 15 Mar 2005 15:45:49 -0500, Dave Merrill <[EMAIL PROTECTED]> wrote:
> Say I have a cfc instance, and the name of a method I want to call is in a
> cf variable. Is there any way to call that method of that object instance?
> 
> Like this:
> 
> <cfset my_obj = CreateObject("component", "car")>
> <cfset method = "blow_horn">
> 
> I'd like to do something like this blatantly illegal code:
> 
> <cfset my_obj[method]()>
> 
> Is anything like this possible? How?
> 
> Thanks,
> 
> Dave Merrill
> 
> ----------------------------------------------------------
> 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]
> 
> 


-- 
[EMAIL PROTECTED]
http://blog.rawlinson.us

I have 47! gmail invites,want one?

----------------------------------------------------------
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