Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer - How to
Message
 
À
13/10/2000 09:28:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00428999
Message ID:
00429005
Vues:
16
>Hi Everyone,
>
>I have never use a timer contol before.
>
>I would like to use a timer control in my app that would allow me to quit the app after say 11:30pm reguardless where in the app that the user left (when home) it on the screen.
>
>All files are read only (no updates allowed).
>
>What would be the timer control steps to accomplish this?
>
>Main Form is modeless rest forms modal.
>
>Thanks in advance!
>Roland...

Set a public flag to .t. that you are quiting without return
Then start with Clear Events
The code after read events will try to close your forms just as with a normal shutdown.
Now if you have any code in your forms that would keep the forms open like asktoclose or something you can set code there to check first for the flag and then don't ask for closure.
You only have a problem if there is a messagebox open.
probably quit does work then
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform