Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automatic shutdown of a Form
Message
From
14/09/2003 17:35:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
14/09/2003 12:21:37
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00828834
Message ID:
00828855
Views:
14
>I have numerous users running an app that accesses shared tables. The users don't always shut down the app (there is a main form that runs) and therefore I can't open any tables exclusively after hours via remote. Is there a way to sense inactivity of the form, and QUIT after a specified timer interval? Thanks.

Basically, you can use a Timer object, and reset it every time the user presses data. I think that this is not exactly simple.

A much simpler solution is to throw your users out when you need to do maintenance. Have a Timer in your application check every 2 minutes for the existence of a file with a name like "maintenance.tmp". If the file is found, call your applications OnQuit() method, or whatever it is called.
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