I have a component that I create use and free in my application. This
component because it has events I declare Global. I have heard that you
can declare the virable in the procedure that it is created in and then in
its events (which happen after this procedure has been compleated) you can
use
with (sender as tobject) do....
this works ok but when it comes to free the component calling free in the
componets own event I have also heard is not good.
Anyone have some ideas on the best way to do this or should I stick to the
global variable and free the componet with a WM.
James
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz