Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer always enabled
Message
 
À
11/09/2000 12:25:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00414868
Message ID:
00415041
Vues:
22
>>>Hello.
>>>I use timer for display my form. As default the form left = -1000. When form will loaded, the timer must set correct posion for the form and must die.. but..
>>>I place in timer.timer event next code
>>>this.enabled = .f.
>>>this.interval = 0
>>>....
>>>
>>>But I see in coverage profiler. And timer.timer event occurs more then one time..
>>>Can you explain that?
>>

>>Probably,
>>
>>Have you set the interval smaller then 10 or so? In that case it can happen that the timer event fires more then once i've seen.
>>
>>Hope this may help you,
>
>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'
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform