Handle 4D Quit gently

Vincent de Lachaux, 4D iNug Technical, 18. Sep 2015

When 4D Quit, all processes are called and you can do something like closing your dialogs:

Case of

//…

: (Form event=On Outside Call)
If (Process aborted) //4D wants to quit
SET TIMER(0)

//Do something (rapidly, you have 3 seconds).

CANCEL //close dialog
End if

//…

End case