>Hi all,
>
>How to call an OLE server Method and be able to navigate in my application until the result of the calling method finish.
>
>Thanks in advance
>Petros
Due to the single threaded nature of VFP, you may or may not be able to do this. Calls to methods must retrun control immediately to VFP in order for it to do anything.
To allow for this in a VFP out-of-process server, you could write a server with a timer. You could instantiate the server enable the timer and when the timer fired, it could run a method based on a property you set before you enable the timer. The method would be run outside of the control of the calling program and therefore, you would have control. You would have to check a status flag periodically to determine when it was completed.
If you are talking about normal OLE automation with something like Word or Excel, I don't know of a way to do it using these directly. You may have to write an out-of-process VFP COM server wrapper to handle it.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao