Dynamic returntype in CFC function?
Is there a way to dynamically set a function returntype in a CFC?
For example; if I have a function that contains a 700 line query, and need it to work with two different objects, each of which requires a different format..
.. instead of having two 700+ line functions, one to return a query and the other to return a struct, is there a way to tell the function which format to return the data in? Can it be passed using CFARGUMENT?
Thanks,
^_^
