Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer to close app
Message
From
13/08/2004 11:15:49
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
13/08/2004 08:46:39
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00933092
Message ID:
00933145
Views:
16
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform