Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing Application
Message
De
28/11/2005 10:13:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
28/11/2005 09:26:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01072412
Message ID:
01072458
Vues:
16
>>>Hi,
>>>my application requires an exclusive access to some of the tables for critical updates and no users should be in the system at that time. Some of my users keep forgetting to leave and keep the appliaction active on their PC.
>>>Is there a way to put timer or something to close an application after some time of inactivity?
>>>Thanks
>>>Jerry
>>
>>I use a timer that checks every to minutes for a file called "maintenance.tmp". If the file exists, the application quits. Also: on startup, if the file exists, the user gets an appropriate error message, and the applicatino quits.
>
>Thanks for fast reply.
>Where did you put timer? On a main Foxpro screen?

In the application object.

The application object is an object, declared as a global variable, that stores data relevant for the application: a list of open forms, the name of the currently logged-in user, and many other more.

If you don't use an application object, just create a variable in your startup program.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform