On Tuesday, September 3, 2002, at 06:09 , Dave Watts wrote:
> The CFPROPERTY tag is a bit confusing. I think it's used to define 
> metadata,
> rather than what you'd think of as properties of an object. So, basically,
> for your purposes it does nothing useful.

Correct.

> To create publicly-accessible "properties", just declare variables within
> your CFCOMPONENT body, before your CFFUNCTION tags, using the scope "this"
> .

Correct.

> In general, though, you might want to avoid the creation of
> publicly-accessible variables, and create "methods" using CFFUNCTION
> instead, to manipulate internal variables.

Agreed. Use the unnamed (private) scope and hand back copies of variables 
via getXxx() methods.

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

______________________________________________________________________
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

Reply via email to