>do mainmenu.mpr >on shutdown do shutdownprogram >.... >read events >WAIT WINDOW "Current shutdown: "+ON("shutdown") >This code (wait window) is never executed.
DO SomeManager_menu.mpr ON SHUTDOWN DO mgr_click_shutdown DO FORM Some_Toolbar &&display toolbar DO FORM BrowserForm NOREAD DO FORM Data_Path NOREAD USE IN SELECT('LOCKOUT') oAppObj.PollLockout_Start() READ EVENTS &&this is where it all happens! MESSAGEBOX("Current shutdown: "+ON("shutdown"))This messagebox is never displayed when I try to close the application with the close button.