>Hello Nadya,
>
>
>* textbox.valid() method
>if thisform.releasetype = 0
> * put validation code here
>else
> * user hit close box or wants to exit VFP
>endif
>
Thanks, Steve. I hoped, that clicking on x sets some form's property, but forgot, which one...
If it's not broken, fix it until it is.
My Blog