On Wed, 01 Feb 2012 12:31:12 -0500
Timothy Groves <[email protected]> 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?)

Did you get a compiler error?

This works too:

procedure TForm1.Button1Click(Sender: TObject);
begin
  Close;
end;



Mattias

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to