Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement