>Hi. We have some VFP6.0 apps that users don't close when they leave for the day. I used the timer class to create an object that would check to see if it's between a certain time--say after midnight, and if so close the app. This is probably very stupid, but when I call Clear All within the timer event, I get an error that the timer object is in use, and therefore can't be cleared. I've been researching this for a while and cannot find an obvious solution, although I'm sure the answer is simple. Thanks...
Why not issue Quit from the timer event and let your shutdown code take care of cleaning up. That should do the same as if the user had closed down the app.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement