>Hi there,
>
>i have a question about closing a form using the cross-in the upperright corner of the form.
>
>Is it possible to catch the event this button raises? (and thus make it possible to return to the form if the user wants to)
>
>regards,
>
>Erwin
Put all your closing code in Form.QueryUnload(). Issue a NODEFAULT, for instance, if there are pending changes and the user doesn't want to save, or tries to save, but TableUpdate() returns .F.
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)