zilav Posted November 6, 2014 Share Posted November 6, 2014 Is there a proper way to close application if I have a "Quit" button? - calling Close on MainForm - MainModule.UniMainModule.Terminate - anything else? Quote Link to comment Share on other sites More sharing options...
mhmda Posted November 6, 2014 Share Posted November 6, 2014 UniApplication.Terminate('See you next time'); 1 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 6, 2014 Administrators Share Posted November 6, 2014 - calling Close on MainForm - MainModule.UniMainModule.Terminate Both have the same result. 1 Quote Link to comment Share on other sites More sharing options...
Daryl McMurray Posted February 13, 2018 Share Posted February 13, 2018 Yes there is - UniApplication.Terminate('GoodBye'); // to put the app in a closed state in the browser PostThreadMessage(MainThreadID,wm_quit,0,0); // will tell the main application to terminate Use only for testing though... or users will be able to terminate the server.exe Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.