Or you could just use cfinvoke...

Mark

On 8/24/05, Pat Branley <[EMAIL PROTECTED]> wrote:
> Hi Bec
> 
> Give this a go:
> 
> 
> <cfset objScribble = createObject("component","scribble") >
> 
> <cfoutput>#objScribble.fDynamic('helloworld2')#</cfoutput>
> 
> <cfcomponent >
> 
>         <cffunction name="fDynamic" returntype="string">
>                         <cfargument name="fName">
> 
> <!--- note how i put it into a variable first --->                            
>                           <cfset myFunct
> = this[Arguments.fName] >
> 
>                         <cfreturn myFunct() >
>         </cffunction>
> 
>         <cffunction name="helloWorld1" returntype="string">
>                 <cfreturn "hello world 1">
>         </cffunction>
> 
>         <cffunction name="helloWorld2" returntype="string">
>                 <cfreturn "hello world 2" >
>         </cffunction>
> 
> </cfcomponent>
> 
> Cheers
> 
> Pat
> 
> 



-- 
E: [EMAIL PROTECTED]
W: www.compoundtheory.com
ICQ: 3094740

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to