Intercepting form close and appl close
Quote:
>How do I intercept the form close (little box with the X
in the upper
>right hand corner) and the application close (same thing
but on the
>application) buttons so I can execute my own little piece
of code?
The first with the QueryUnload event. Indeed, this event is
there so you have a chance to ask your user if she/he
really want to close the form. If the user doesn't want to,
you only have to isuue a NODEFAULT command, and the form
will not be closed.
The second one have to be trapped with ON SHUTDOWN. It
works like the old fox events (on error, on key, etc). You
can do whatever you want, and finnally end or not your app,
quitting or not from fox.
Hope this helps.
--
_________________________________________________________________
Merino Aller Callao 232, 6to.11 (1022) Bs.As, Argentina