Joe Rinehart wrote:
I'd definitely do the latter, as you can get into some scope trouble
with the former (at least in 6.1).
On Tue, 15 Mar 2005 12:50:32 -0800, Sean Corfield
<[EMAIL PROTECTED]> wrote:
Eiither:
<cfset method = myObj[method] />
<cfset method() />
Or:
<cfinvoke component="#my_obj#" method="#method#" />
I'd recommend the latter.
I'd also recommend the latter. I've been burned on this exacte issue on
code before...although it doesn't let you call a dynamically name method
in cfscript which can be bad if you like to code in cfscript.
.pjf
--
Peter J. Farrell :: Maestro Publishing
blog :: http://blog.maestropublishing.com
email :: [EMAIL PROTECTED]
Shields up, Mr. Sulu. Arm phasers. Ready photon torpedoes.
--
----------------------------------------------------------
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]