Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer to close app
Message
De
13/08/2004 11:15:49
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
13/08/2004 08:46:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00933092
Message ID:
00933145
Vues:
17
>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...

While this may not solve your immediate problem, I would suggest an alternative option - your Timer can check for the existence of a specific file, like "maintenance.tmp". This will allow you to kick out the users at unscheduled times.

This can be either in addition to, or instead of, checking for a time interval.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform