Esteban,
It doesn't matter about AutoYield, while there are no input device activities going on, the DoEvents command takes about 0.25 seconds to execute on P-166 class machines. It isn't much faster on my P2-300. On my website there's an article under Q&A, General that offers two solutions. The first just wraps the command with an object that you can specify an iteration counter to control how many times the command is issued. You rarely need it executed but once every 100-1000 iterations of a tight loop anyway. The FastDoevents function is a first class kludge, but it works. *s*
>I have a process like this:
>
>_VFP.Autoyield = .F.
>...
>llCondition = .T.
>Do While llCondition
> ...
> If ...
> llCondition = .F.
> EndIf
> DoEvents
>EndDo
>
>When the process is runing it is relatively slow but if I move the mouse the process run faster
>
>Any suggestion to increase the DoEvents speed programmaticaly ??