Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Here an easy one... the wait command
Message
 
À
22/08/2000 14:25:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00407890
Message ID:
00409535
Vues:
27
Carl,

Actually INKEY() will also allow the use to exit the process with a keystroke, so this should work for you;
PRIVATE llGoOn

* Do some code

* Then 

loTimer = CreateObject("MyTimer")
llGonOn = .F.
loTimer.Interval = 30000
loTimer.Enabled = .T.
DO WHILE NOT llGoOn
   INKEY(.5)
ENDDO
RELEASE loTimer
* Do your other code

RETURN

DEFINE CLASS MyTimer AS Timer
PROCEDURE Timer
   llGoOn = .T.
ENDPROC
ENDDEFINE
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform