>>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