>Thx Borislav
>
>>>Hi
>>>
>>>What methods run when the form is closed using the cross?
>>
>>QueryUnload()
If for some reason you decide, in QueryUnload(), that the form should NOT be closed, you must use the NODEFAULT command. A common case is when there are pending changes, you ask the user if he wants to save changes (with the options Yes/No/Cancel), and the user presses "Cancel".
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)