Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timeout and quit
Message
 
À
16/01/2001 22:40:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00464527
Message ID:
00464568
Vues:
12
>Hello,
>
>I would like to close automatically a VFP application after n minutes.
>
>Where need I place the timer :
>a)in each forms
>b) in the menu<
>c) at read level
>
>I don't know !
>
>hubert


I have done this by making a timer class, and instantiating it in the main program.
You know only have to record activity.
I don't know if there are good alternatives to do that, but you can have a method in the timer class, that resets the timer to zero after activity is seen.
You then have to call the method everywhere you place code.

If you call a messagebox in your app, the timer control doesn't fire.
In VFP7 you can workaround this by using a timeout on the messageboxes.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform