>>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?
>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.
In addition to that, I usually have that method return .F. as well. That lets me write Close button code like:
IF ThisForm.QueryUnload()
ThisForm.Release
ENDif