Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer events stacking up
Message
De
11/09/2003 20:18:11
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
11/09/2003 20:12:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00828369
Message ID:
00828370
Vues:
20
Hi Bill

You should always disable the timer when it calls a process and then turn it on when completed.
procedure timerevent
  this.enabled = .f.
  thisform.somemethod()
  this.enabled = .t. 
endproc 
>I'm using VFP 7.0
>
>I have a timer with an interval 250. Sometimes when I'm trying to open a stubborn page in the web browser control my timer events stack up. Then when the page finishes loading, all the timer events execute one after another.
>
>Is there someway to get the timer to quit stacking up the events and just trigger it once when the page finishes loading?
>
>The timer is primarily just checking to see if the page has finished loading (DownLoadComplete() and DocumentComplete() are not reliable enough).
>
>TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform