On May 17, 2004, at 10:31 AM, Ben Curtis wrote:
I find that I occasionally end up wanting to dynamically decide which method
of a CFC to call. It ends up looking something like:
cfcInstance.tempMethodName = cfcInstance[cfcMethodNameIWant];
cfcInstance.tempMethodName(whateverArgs);
structDelete(cfcInstance,"tempMethodName");

Why not:

<cfinvoke component="#cfcInstance#" method="#cfcMethodNameIWant#" ... />

    <cfoutput>#cfcInstance[cfcMethodNameIWant]()#</cfoutput>

Not what I would have expected. Why do you suppose? Is this a bug?

The syntax of function calls requires that they be preceded by a name, not an expression. Not a bug.


Sean A Corfield -- http://www.corfield.org/blog/

Macromedia Community Week - May 17-21
http://www.macromedia.com/community/

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

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

Reply via email to