Did you look at Sean's CFC? That pretty much covers it. ;-) On 10/24/07, Baz <[EMAIL PROTECTED]> wrote: > > Out of curiosity, how would you re-write this using getMetaData(): > > <cfcomponent output="false"> > <cffunction name="invokeSomeRandomFunction" access="public"> > > <cfset var FunctionObject=variables['SomeRandomFunction'] /> > > <cfset var ExecuteMe=ArrayNew(1) /> > > <cfset var currentIndex="" /> > > <cfloop from="1" to="#ArrayLen(arguments)#" index="currentIndex"> > <cfset ArrayAppend(ExecuteMe, '''#arguments[currentIndex]#''') > /> > </cfloop> > > <cfset ExecuteMe="FunctionObject(#ArrayToList(ExecuteMe)#)" /> > > <cfreturn evaluate(ExecuteMe) /> > </cffunction> > > <cffunction name="SomeRandomFunction" access="public"> > <cfargument name="SomeRandomArgument" type="string" /> > > <cfreturn arguments /> > </cffunction> > </cfcomponent> > > Baz > > > On 10/23/07, Sean Corfield <[EMAIL PROTECTED] > wrote: > > > > > > On 10/23/07, Mark Mandel <[EMAIL PROTECTED] > wrote: > > > Actually, when you put it like that, it makes sense.. .I hadn't really > > > thought about it that way. > > > > Guess I'll have to keep up my one-man education campaign about the > > dynamic nature of CF then... ;) > > -- > > Sean A Corfield -- (904) 302-SEAN > > An Architect's View -- http://corfield.org/ > > > > "If you're not annoying somebody, you're not really alive." > > -- Margaret Atwood > > > > > > > >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CFCDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfcdev?hl=en -~----------~----~----~----~------~----~------~--~---
