Let me add - though - that I encourage the use of cfproperty. Like I
said before, it can be used for validation, and it also shows up when
you display the CFC, which adds a helpful reminder of the data your CFC
uses.
FYI - I'd rewrite your method like so:
<cffunction name="returnname" returnType="name">
<cfargument name="FullName" type="name" required="yes">
<cfreturn Fullname>
</cffunction>
Notice the use of returnType? This adds another layer of protection in
your CFC to ensure you return the right type of data.
=======================================================================
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: Raymond Camden [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 18, 2002 9:33 AM
> To: CF-Talk
> Subject: RE: Properties in CFCs: Here is the use (Was RE:
> Using THIS scope in CFCs)
>
>
> > Tsk, Tsk... Ray is wrong. ( That never happens).
>
> Actually, I'm not. (grin)
>
> > Create a CFC called name.cfc :
> >
> > <cfproperty name="firstname" type="string">
> > <cfproperty name="lastname" type="string">
> [deletia]
>
> >
> > Supposedly, this is not possible without properties. (
> > according to one
> > of my conversations during the beta cycle). My own CF Server
>
> Incorrect. You can use CFCs as types in method arguments (or
> returnTypes) w/o using cfproperty inside them.
>
> ==============================================================
> =========
> 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
>
>
>
______________________________________________________________________
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