At 04:02 PM 9/23/2002 -0400, you wrote: > > 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
You've got it. If I were to specify a returnType that wasn't a known type, what's the best way to create an instance of that datatype to manipulate it. I assume a createObject() call to the CFC containing the datatype properties would be the best way - at the top of the cffunction body. Thanks, ---------------------------------- Alex Sherwood PHS Collection Agency THE COLLECTORS 301.215.4200 T 301.664.6834 F www.phs-net.com ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.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

