> At 03:14 PM 9/23/2002 -0400, you wrote: > >If you want to indicate a failure in your CFC, why not > simply cfthrow an > >error? You can set both a type, details, and message for the error. > > > Sounds good. Thanks, Jedi. > > Another question, since you're the Jedi master: > > If I create a complex data type via a CFC, and then specify it as the > returnType in another CFC, what is the best way to create an > instance of > the data type within the CFC to manipulate it before it is returned? > Creating an instance of the CFC itself is the obvious method, > but is there > any other way?
I'm a bit confused by your wording - are you saying you want to return a CFC from a method? If so, the returnType will simply be the name of the CFC. In fact, if returnType is not equal to one of the known types, CF assumes you mean another CFC. As for the best way to create it - that's up to how you are using it. I normally create CFCs with createObject(). -Ray ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

