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? 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 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 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now