Funny ... seems to work for me ... with a "clean" start of VFP 7.0.
There may be another environment setting that is impacting you :(
>Thank you, but still no luck.
>
>>Insure
>>
>>_VFP.Autoyield = .T.
>>
>>
>>prior to running that section of code.
>>
>>>No, it does not help.
>>>
>>>>
>>>>KEYBOARD "hello"
>>>>DOEVENTS
>>>>WAIT WINDOW "hello"
>>>>
>>>>
>>>>>Looks like this always works in revert order:
>>>>>
>>>>>
>>>>>KEYBOARD "hello"
>>>>>WAIT WINDOW "hello"
>>>>>
>>>>>
>>>>>What should be done to delay the second line execution until keyboard is completed?