[Lazarus] How to close a window from code

Rich Saunders saunders.richard.p at gmail.com
Wed Feb 1 19:16:44 CET 2012


On 2/1/12 12:49 PM, Timothy Groves wrote:
> However, the Form1.Close version did, and that's what I'm using.  Thanks!
Tim-

Note that using Self.Close; would be safer and much preferred over
Form1.Close; when called within a TForm1 class method.

It does not rely on the Form1 instance reference to be present and usable.





More information about the Lazarus mailing list