Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer - How to
Message
De
13/10/2000 11:53:04
 
 
À
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:
00429132
Vues:
15
>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.

Well, if you're app is designed, so calling a function will close out of the app, you're half way there. You'll want to modify it to optionally run without dialogs or confimation, ect. if it does.

Then, something like this (this code fires off CloseApp() in the 11pm hour):
oTimer = createobject('MyTimer')

define class MyTimer as timer
     proc Timer
          if time() = '23'
               do CloseApp()
          endif
     endproc
enddefine
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform