I see a few people have a problem with using the this scope, why ?
 

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: 31 March 2006 00:40
To: CF-Talk
Subject: RE: CFWDDX and Component Objects

> Thanks for your replies. Do you have any tips to create this serialize 
> function? My CFC has some instantiation variables set 
> (this.numberitems, this.cartType, etc) and those are really the only 
> variables I want to serialize. I tried using CFWDDX with an input of 
> "#variables#" and again with an input of "#this#" but all that was 
> sent back were the functions of the CFC. I am just trying to prevent 
> having to hardcode this variables in my serialize function when I am 
> creating a structure of the data.

Well, you probably shouldn't put variables into the "this" scope, since
that's public. Generally, I create a structure of my own, and put member
variables into that. In that case, you'd just serialize and deserialize that
structure as needed.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized instruction
at our training centers in Washington DC, Atlanta, Chicago, Baltimore,
Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236635
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to