Board index » delphi » difference between Tform.close, destroy and free

difference between Tform.close, destroy and free


2003-11-12 07:16:05 PM
delphi112
Hi there,
what are the differences between closing, destroying and freeing a form??
Thanks,
Pascal
 
 

Re:difference between Tform.close, destroy and free

Close is basically the same as hide except it will trigger the OnClose
Events.
Destroy & free release the form from memory and trigger there appropriate
events as well. It is recommended that you never use destroy, but use
release instead. Release waits for all messages to fire before freeing the
form.
"Pascal Schmidt-Volkmar" <XXXX@XXXXX.COM>writes
Quote
Hi there,

what are the differences between closing, destroying and freeing a form??

Thanks,

Pascal


 

Re:difference between Tform.close, destroy and free

On Wed, 12 Nov 2003 06:21:46 -0600, darren<XXXX@XXXXX.COM>
said ...
Quote
Close is basically the same as hide except it will trigger the OnClose
Events.
And Close may call 'Release' if you set the action paramtere of the
OnClose event to caFree
Marc