Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Observation of DoEvents
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00170832
Message ID:
00171130
Views:
27
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 ??
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform