May be there is another way to do this like to using SendMessage API call
with WM_DESTROY message. If I right understood, the application window will
close after receiving this message. I didn't tried this because can't find
the value of WM_DESTROY message, but may be someone will have more luck ;)
>I've written a couple of functions which are available in the Files/Win32
& Other APIs section > As to shutting down the application, that can be a
rather tricky business. If the application was already active when VFP
started up, I don't know if it's possible.
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer