Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
* Start of main program
ON SHUTDOWN DO ExitProc
* The rest of the main program here
FUNCTION ExitProc
lcMessage = "Are you sure you want to quit?"
IF MESSAGEBOX(lcMessage, 1, 32) = 1
* User wants to quit
QUIT
ENDIF
RETURN
Olaf said:but ON SHUTDOWN also happens, when the OS shuts down. And you usually don't want to be in the way there.
IF conditions are [b]not[/b] ok to close the form
MESSAGEBOX("You forgot something dude.", 0, "Error")
RETURN .F.
ENDIF