Board index » delphi » Application.Terminate or fmMain.Close?

Application.Terminate or fmMain.Close?

Hi!

Can somebody tell me what is the deference between
Application.Terminate and fmMain.Close?

Sasa

 

Re:Application.Terminate or fmMain.Close?


Application.Terminate just terminates the app abruptly ...

FormClose calles FormCloseQuery etc...

Try putting code in the main form's OnClose event and watch it NOT fire
when you use application terminate..

Rkr

Quote
Aleksandar Galovic wrote:

> Hi!

> Can somebody tell me what is the deference between
> Application.Terminate and fmMain.Close?

> Sasa

--
                   \|||/
                   /'^'\
                  ( 0 0 )
--------------oOOO--(_)--OOOo--------------
. Reid Roman                              .
. Delphi Programmer / Analyst             .
. TVisualBasic:=class(None);              .
. May the Source be With You              .
-------------------------------------------
. Auto-By-Tel (http://www.autobytel.com)  .
. Irvine, CA U.S.A                        .
. E-Mail : rkroman (at) pacbell (dot) net .
. or reidr (at) autobytel (dot) com       .
-------------------------------------------

Other Threads