>When a user modify some data in a form and click
>the X (Windows 95) in the right corner to close
>VFP whitout saving, how i can control this and
>prevent VPF to close. I want the user be notify of
>data change and ask him if he want to save this
>data.
I have this when my system start up: ON SHUTDOWN oApp.Cleanup()
This cleanup method is responsible to scan all active windows and determine if we have unsaved changes, if yes, ask the user to ignore these changes or to cancel the shutdown.