Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Autoyield and Doevents
Message
From
03/05/2010 09:22:16
 
 
To
03/05/2010 03:56:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01462750
Message ID:
01462780
Views:
49
Thanks Gregory. Had the two related in my mind for some reason but I understand it now.


>>Hi All,
>>
>>When a form need the _VFP.AutoYield = .F. due to it having an OCX when should one issue the DOEVENTS? Before setting _VFP.AutoYield back to .T. or after setting it back to .T.?
>>
>>
>>
>>_VFP.AutoYield = .F.
>>
>>...
>>...
>>...
>>
>>DOEVENTS  &&   <= here ....
>>
>>_VFP.AutoYield = .T.
>>
>>DOEVENTS  &&   <= or here ?
>>
>>
>
>I don't think you need any DoEvents
>
>Unprocessed windows events are queued.
>
>Process window's events = process some events in the queue
>
>With autoyield TRUE, the window's events are processed between lines of code + when vfp enters a wait state
>
>With autoyield FALSE, the window's events are processed when vfp enters a wait state
>
>Wait state:
>- waiting for user input, nothing else to do
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform