Re: How can I restate this without using EVALUATE?

2008-06-20 Thread Josh Nathanson
In a calling page: cfset theObject = CreateObject(component,dynamictest).init(James) cfset theMethodToCall = myFunction cfset theObject.myMethod = theObject[theMethodToCall] cfset myResult = theObject.myMethod(hello) cfoutput#myResult#/cfoutput Does anyone know why in CF you can't do

How can I restate this without using EVALUATE?

2008-06-19 Thread Brad Haas
I know using evaluate is a no-no, but I'm stumped on how to restate this line of code: cfset methodResults = evaluate(theObject.#url.methodCall#(#args#)) Any help would be appreciated. ~| Adobe® ColdFusion® 8 software 8 is

Re: How can I restate this without using EVALUATE?

2008-06-19 Thread Matt Williams
Can't be done in a regular cfset cfinvoke component=#theObject# method=#url.methodCall# argumentcollection=#args# returnvariable=methodResults / On Thu, Jun 19, 2008 at 4:14 PM, Brad Haas [EMAIL PROTECTED] wrote: I know using evaluate is a no-no, but I'm stumped on how to restate this line of

Re: How can I restate this without using EVALUATE?

2008-06-19 Thread Jo�o_Fernandes
cfinvoke component=#theObject# method=#url.methodCall# argumentCollection=#args# returnvariable=methodResults/ -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org Portugal Adobe User Group (http://aug.riapt.org)

Re: How can I restate this without using EVALUATE?

2008-06-19 Thread Brad Haas
Thanks Matt João. I appreciate your help. cfinvoke component=#theObject# method=#url.methodCall# argumentCollection=#args# returnvariable=methodResults/ -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org Portugal Adobe User Group (http://aug.riapt.org)

Re: How can I restate this without using EVALUATE?

2008-06-19 Thread James Holmes
Actually it can, technically speaking, although why you'd do this is beyond me: In dynamictest.cfc: cfcomponent cffunction name=init access=public returntype=dynamictest cfargument name=someProperty type=string required=yes cfset

RE: How can I restate this without using EVALUATE?

2008-06-19 Thread Mark Kruger
This is done frequently in frameworks that use controllers (ie model glue) -mark Mark A. Kruger, CFG, MCSE www.coldfusionmuse.com -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 8:42 PM To: CF-Talk Subject: Re: How can I restate

Re: How can I restate this without using EVALUATE?

2008-06-19 Thread James Holmes
: Thursday, June 19, 2008 8:42 PM To: CF-Talk Subject: Re: How can I restate this without using EVALUATE? Actually it can, technically speaking, although why you'd do this is beyond me: -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog