There is nothing wrong with "Application.Terminate"...
A normal program doesn't need it, but in some cases you really need it otherwise it wouldn't work. And exactly that shows my example and btw. I don't say everybody should do it that way, it's just an example...
Sigh...... (that's worse than grumpy)
No it's not.. I stick to my example that's all...
....Don't nitpick.
What do you think is this:
procedure TForm1.mnuKillSwitch(Sender: TObject);
begin
Showmessage('Never do this, you will loose your work!');
Application.Terminate;
end;
If you don't save you will loose your work... that has nothing to do with "Application.Terminate", if you use "Close" you loose it too...
...and I can outsmart almost everyone (by accident? ).
You are confusing outsmart with exactness !!!
As I said before I stick to my example... that's it...