Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timers and Asynchronous SQL
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00008345
Message ID:
00008376
Views:
35
>>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

Also look at the KB article that deals with Timers not working if in a Toolbar because the Toolbar never 'really' receives focus. This 'may' also shed some light on this.

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Previous
Reply
Map
View

Click here to load this message in the networking platform