Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-11

deleting event handlers

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ken Moffat

Is it ok in Lazarus to just remove the code for an event handler from the unit? I have several unused event handlers, such as

procedure TForm1.Button1CLICK(Sender: TObject);
begin
end;

just empty, but in delphi/kylix these are removed automatically on save. Can I just delete these and there declarations?

Ken

Reply by email

Tony Maro
to Ken Moffat
Show quoted text 15 lines
-----Original Message----- From: Ken Moffat > Is it ok in Lazarus to just remove the code for an event handler from the unit? I have several unused event handlers, such as procedure TForm1.Button1CLICK(Sender: TObject); begin end; just empty, but in delphi/kylix these are removed automatically on save. Can I just delete these and there declarations?

Yes, but don't forget to delete it from the object inspector event as well.

-Tony

Reply by email