If you need to pass n ordered parameters, I'm not sure if there is a
solution. But if can be a structure of name value pairs this method
should do what you want Local.TempReturns = dynamicMethodCall(object=Request[Local.Temp.Class], method=Local.Temp.Method, args=Local.Temp.Parameters); <cffunction name="dynamicMethodCall" access="public" returnType="any" hint="method to dynamically call any method on any object with any arguments"> <cfargument name="object" required="true" type="any" hint="a reference to the object to call the method on" > <cfargument name="method" required="true" type="string" hint="the name of the method" > <cfargument name="args" required="false" type="struct" default="" hint="a structure with the arguments as name value pairs" > <cfset var retVal = false> <cfinvoke component="#object#" method="#method#" argumentcollection="#args#" returnvariable="retVal"> <cfreturn retVal> </cffunction> Peter Bell wrote: ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to cfcdev@cfczone.org 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/cfcdev@cfczone.org |
Title: Message
- [CFCDev] Help with dumping Evaluate() . . . Peter Bell
- Re: [CFCDev] Help with dumping Evaluate() . . . Steve Bryant
- Re: [CFCDev] Help with dumping Evaluate() . . . Jerry Ela