Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timers and Asynchronous SQL
Message
De
22/09/1996 11:49:31
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00008345
Message ID:
00008374
Vues:
34
>That particular code snippet was an example. In my case, I am trying to use a timer to animate an icon which starts before the loop begins. The loop initiates the asynchronous sql query, continually checks its status and other commands that keep a count-up timer refreshed on a form. I originally animated the icon in this loop without the timer, but external factors made the animation run erradic (slows down - then speeds up, etc). If I rem out the sqlexec statement everything works great, however when the sqlexec statement is active the interface commands in the loop work fine, but the timer events stall.

As far as I know and tested: when you have a loop (do while, for, etc) in one method (anywhere in your app), all timers are waiting until the loop is finished.

Make a very simple form with on timer showing time and a button with a
FOR i=1 to 1000000 in Click method. When you click the button, the timer stops.

Probably when you rem the sqlexec, your loop is finished very fast, so you can't see the timer is stoped. Anyway, the max resolution for a timer is 1/18 seconds. So...

Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform