Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer always enabled
Message
 
À
12/09/2000 01:08:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00414868
Message ID:
00415547
Vues:
25
>>>I have timer.interval=10.
>>>When I change interval to 20.. nothing not happen.. timer event occurs many times
>>

>>Are you stepping trough the code.
>>In that case the event will fire more then once too.
>>Another way to check if the timer events fires more then once is outputting a text to the debugger output window or something like that.
>>
>>MyTimer.Timer:
>>This.enabled = .f.
>>This.interval = 0
>>debugout 'Timer fired'
>>
>
>I looked execution of timer.timer event in VFP Coverage Profiler. I will see more.


I never used the coverage profiler but probably that is time consuming.
I don't know that, but i know that if you let the debugger run with your application it slows down.
You can try outputting something to the screen or so. Or create a public var and increment that every time the timer event fires.
(Only do this for testing, it's not a good idea to use a public var for this at runtime)
And what happens if you set the interval to a really big value (e.g. 1000 ms)

In this case the timer event should run once.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform