[Lazarus] How to close a window from code

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Wed Feb 1 19:03:55 CET 2012


Timothy Groves wrote:
> On 12-02-01 12:14 PM, Mattias Gaertner wrote:
>> Do you mean a LCL form? Form1.Close;
> Well, I tried just Close from within a method of the form in question, 
> and that didn't work.  This did.  Any explanation as to why?  (Perhaps 
> the fact that close is also a Pascal reserved word?)

Not so much a reserved word as a predefined procedure if you're pulling 
in the standard libraries. 
http://www.freepascal.org/docs-html/rtl/system/filefunctions.html

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list