Yes. The function can be made private thru setting access=private, and arguments can be set to either required or not: required="true" and you can use the Display Name or Hints to say whether required or not and inform of any default value.
Andy -----Original Message----- From: Paul Spitzer [mailto:[EMAIL PROTECTED] Sent: None To: CF-Talk Subject: UDF in CFC's - was: CFC Issues.... > <cfscript> > function boring() { return now(); } > </cfscript> wow!.. I didn't know you could do that. Is there *any* way to make them private? I noticed that the component documentation says all the arguments are required, is it possible to declare which arguments are required and which ones aren't? What else can you do with this... playing with it, it really doesn't seem very flexible, but I still have hope. Paul (wishing I could use script syntax for everything) > -----Original Message----- > From: Raymond Camden [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 20, 2003 2:33 PM > To: CF-Talk > Subject: RE: CFC Issues.... > > > My blog entry talked about creating a UDF _inside_ a method, this is NOT > the same as creating a UDF in a CFC. For example: > > <cfcomponent> > > <cfscript> > function boring() { return now(); } > </cfscript> > > <cffunction name="foo"> > <cfreturn boring()> > </cffunction> > > </cfcomponent> > > This is perfectly valid. The only issue is that EVERY UDF defined, even > cfscript ones, are considered methods. So "boring" will show up in the > metadata. In general, you do not want to use cfscript, instead, use > cffunction and mark the udfs as private so they can't be called from the > outside. > > > -------- http://www.fusionauthority.com/signup.cfm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com