>>The one problem with VFP timer is that it doesn't fire under all circumstances ...
>
>Actually, our application sometimes fails to shut down for a different reason (I think). From the Timer, I invoke goProgram.OnQuit(), where goProgram is the global application object.
>
>Now, this is the same as if the user presses Alt-F4. In other words, the application tries to do a "clean" shutdown; if there are pending changes, the user will see a dialog, asking to save. Now, if the user went for a coffee break...
>
>I guess I might try a QUIT instead (force a shutdown, don't save changes), but I am no longer in charge of said application now.
>
>Also, we don't always want to throw out some 30-40 users; so sometimes we just called the departments who regularly use a certain file.
>
>In both cases, we also used a customized verion of the FAQ by Ramon Jaquez, to see who has a file open. Usually the file we wanted to REINDEX or something; or the executable if we wanted the users to close their application completely.
I found it a bit tricky to close the application when you have a Report Preview window opened. I think I was able to solve it, though.
If it's not broken, fix it until it is.
My Blog