structNew will kill the old data.

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Hire

Email    : [EMAIL PROTECTED]
Yahoo IM : cfjedimaster

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Gyrus [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, September 18, 2002 9:50 AM
> To: CF-Talk
> Subject: does StructNew() destroy old structure completely?
> 
> 
> I've got a structure in the Application scope that I use to 
> store different
> types of information, depending on circumstances.
> 
> When the structure's contents need replacing, I just initiate 
> the process
> with
> 
> <cfset myStruct = StructNew()>
> 
> My question is: if 'myStruct' already contains a set of 
> key-value pairs,
> will StructNew() clear it completely, allowing for totally 
> new key-value
> pairs? Or could there be problems along the way?
> 
> My tests seem to indicate the former, but I keep wondering whether
> StructClear() is necessary here or not.
> 
> - Gyrus
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> - [EMAIL PROTECTED]
> work: http://www.tengai.co.uk
> play: http://www.norlonto.net
> - PGP key available
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
______________________________________________________________________
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to