Use argumentCollection and pass in a struct:

example:

result = component.method(argumentCollection=mystruct);

Steve Bryant
918-449-9440
Bryant Web Consulting LLC
http://www.BryantWebConsulting.com/
http://steve.coldfusionjournal.com/


At 09:13 AM 6/8/2006, Peter Bell wrote:
One more question. Lets say a function call arbitrarily requires n-parameters, I'd like to do something like:

Local.LoopReturns = evaluate("Request.#Local.Temp.Class#.#Local.Temp.Method#(Local.Temp.Parameters)"); where I concatenate the values of the n-parameters into a single variable. Seems cf doesn't like that as (quite reasonably) it things I'm just passing a single string rather than the n variable values required. I could define all function calls as taking a single struct, but then I lose the readability and introspection (not to mention type checking) benefits of cfargument(). Any ideas on generically calling functions with n-parameters within a loop so the same line of code can call any method of any class with any number of parameters?

Any ideas much appreciated!

Best Wishes,
Peter



----------------------------------------------------------
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


Reply via email to