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
>>
>>_VFP.AutoYield = .T.
>>
>>DOEVENTS
>>
>>
>
>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.