>The 'X' click calls the QueryUnload event on your form. In your method that closes the form return false if you do not want to close the form. Then put this code in the QueryUnload event.
>
>IF NOT { call close method here}
> NODEFAULT
>ENDIF
>
Is the default code in the queryunload the code that close the form? If so, this is the method I was looking for. Gerald- I want the user to be able to close the form with the 'X', just not automatically. Dave- I believe that in the form's destroy event, it is too late to check the getfieldstate(), because the form is destroyed after its members; the data has already been updated.
Erik Moore
Clientelligence