Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do we Force a Timer to Reset?
Message
 
 
À
21/10/2000 11:35:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00432282
Message ID:
00432498
Vues:
28
Hi!

Well, if you have 2 timers on your form, this may happen. I don;t know all logic of your form, so cannot help.

Finally, you can remove and add again timer control in run-time to reset it. This, for sure, will start timer counting from zero.

>No joy. The behaviour with your code is identical to my own.
>
>Can someone pls explain why when I set a breakpoint on the value of 'checkingpresent' in the code below, it duly stops when the variable is set .t. (which means that the timer must now be disabled - right?) yet, even as I gaze at the code in the trace and watch windows, the 'checkpresent' code carries on running (it hasn't even been called at this stage!!!) and shuts down the program...
>
>if thisform.checkingpresent
> return
>endif
>this.enabled=.f.
>this.interval=0
>thisform.now=seconds()
>thisform.checkingpresent=.t. && breakpoint set here stops code in trace window
>thisform.checkpresent && but this runs anyway!
>
>
>I doan geddit!!
>
>Harry
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform