>thanks for that insigthfull answer,
>
>mark oliva
About the best you could is instead of just using a simple "DO PROCEDUREX", is to fire off another copy of VFP (or an .EXE of PROCEDUREX) using the RUN command. At least that way they'd be running as separate processes.
>
>
>>>hello guys,
>>>
>>>this is my question, I have a modal form with a timer object on it,
>>>whenever the timer fires up, I execute the following command
>>>do procedurex
>>>then the procedurex takes over, at that moment my form losses its
>>>focus and the controls became invisible, I can not even minimize the
>>>form or even move it.
>>>
>>>Any advice here on what is the best way to bring back the focus to the
>>>form while the procedure is running.
>>>
>>>thanks
>>>
>>>mark oliva
>>
>>Short answer is you can't. VFP is not multi-threaded, so the user-interface (your form) is not active while your procedure is running.