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.comICQ #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.