Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer within a timer?
Message
 
À
06/11/2001 18:20:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00578290
Message ID:
00578296
Vues:
34
>Opps! Forgot to mention that the code is in the first timers Timer event.
>
>>Hi,
>>
>>I would like to have a timer within a timer. Here is the code I've tried so far:
>>
>>*do some stuff
>>oTimer = createobject("timer")
>>WITH oTimer
>>	.interval = 5000
>>endwith
>>* how to make oTimer start?
>>* do some more stuff
>>
>>
>>I was playing with the inkey command for a while. The reason why this wouldn't work is that there is a stop button on the form. When I click the stop button I set the first timer.enabled to false. (hopefully this would also stop oTimer)
>>
>>Any ideas?
>>
>>Thanks,
>>Chris

To start the timer just enable it:

.enabled=.T.

But, why do you want to create a new timer
each time a timer event hit?
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform