Thanks for the tip, u da man.
-----Original Message----- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 2:38 PM To: CF-Talk Subject: RE: Passing Arguments between Components Actually I stand corrected. If you want, you can easily write a UDF called validateThis(). Your methods would look like so: <cffunction name="a" .....> <cfif not validateThis(arguments)> <cfthrow an error> </cfif> ... </cffunction> <cffunction name="b" .....> <cfif not validateThis(arguments)> <cfthrow an error> </cfif> ... </cffunction> The only drawback is that the descriptor for the CFC won't display the arguments. If you don't care - then this is a valid option. ======================================================================= Raymond Camden, ColdFusion Jedi Master for Macromedia Email : [EMAIL PROTECTED] Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Stacy Young [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 12, 2002 2:35 PM > To: CF-Talk > Subject: RE: Passing Arguments between Components > > > Hmm Thanks Ray you just gave me a neat idea. Gonna explore > the wrapper idea > a bite more... > > > -----Original Message----- > From: Raymond Camden [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 12, 2002 2:30 PM > To: CF-Talk > Subject: RE: Passing Arguments between Components > > You could only do that if you had one method that then called > the other > methods, which doesn't sound like what you want to do. I > think you will > need to simply spec all the arguments. > > You _could_ use one argument where the type was a CFC itself > - but then > you would need ot design a CFC for the sole purpose of making a > 'capsule' for the group of arguments. > > ============================================================== > ========= > Raymond Camden, ColdFusion Jedi Master for Macromedia > > Email : [EMAIL PROTECTED] > Yahoo IM : morpheus > > "My ally is the Force, and a powerful ally it is." - Yoda > > > -----Original Message----- > > From: Stacy Young [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, June 12, 2002 2:12 PM > > To: CF-Talk > > Subject: RE: Passing Arguments between Components > > > > > > Sorry that should read: > > "If I have a handful of functions in a package of CFC's..." > > > > > > -----Original Message----- > > From: Stacy Young [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, June 12, 2002 2:08 PM > > To: CF-Talk > > Subject: Passing Arguments between Components > > > > If I have a handful of CFC's that require the same arguments > > to be passed in > > can I somehow specify them in one location/CFC and inherit > > those required > > arguments rather than specifying them for every function > > within the CFCs? > > > > It's a reporting app with different reports but they all > > accept a standard > > set of arguments. > > > > Thanks for any insight, > > > > Stace > > > > > > AVIS IMPORTANT: > > ------------------------------- > > Les informations contenues dans le present document et ses > > pieces jointes > > sont strictement confidentielles et reservees a l'usage de la (des) > > personne(s) a qui il est adresse. Si vous n'etes pas le > > destinataire, soyez > > avise que toute divulgation, distribution, copie, ou autre > > utilisation de > > ces informations est strictement prohibee. Si vous avez recu > > ce document > > par erreur, veuillez s'il vous plait communiquer immediatement avec > > l'expediteur et detruire ce document sans en faire de copie > > sous quelque > > forme. > > > > WARNING: > > ------------------------------- > > The information contained in this document and attachments is > > confidential > > and intended only for the person(s) named above. If you are not the > > intended recipient you are hereby notified that any > > disclosure, copying, > > distribution, or any other use of the information is strictly > > prohibited. > > If you have received this document by mistake, please notify > > the sender > > immediately and destroy this document and attachments without > > making any > > copy of any kind. > > > > > > > > > > ______________________________________________________________________ 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

