Hi,
simple question with no answer in sight. After starting an external appl from within VFP with Shellexecute i want to make sure, that the appl does its job and only after that, i can query its result. If i use
Shellexecute(0, "", appl, "", "", 1)
DO WHILE isRunning(appl)
ENDDO
it skips the "DO WHILE" loop since it hasn't been started yet. If, on the other hand, i issue a MessageBox, it processes system messages, which in turn starts the appl and program enter "DO WHILE" loop and waits for my appl to finish its job. So, i need something like ProcessMessages Delphi method, that is, something that handles events, that are stil waiting in queue. Any ideas, how can this be accomplished?
Thanks in advance for your suggestions,
Andrej
simple question with no answer in sight. After starting an external appl from within VFP with Shellexecute i want to make sure, that the appl does its job and only after that, i can query its result. If i use
Shellexecute(0, "", appl, "", "", 1)
DO WHILE isRunning(appl)
ENDDO
it skips the "DO WHILE" loop since it hasn't been started yet. If, on the other hand, i issue a MessageBox, it processes system messages, which in turn starts the appl and program enter "DO WHILE" loop and waits for my appl to finish its job. So, i need something like ProcessMessages Delphi method, that is, something that handles events, that are stil waiting in queue. Any ideas, how can this be accomplished?
Thanks in advance for your suggestions,
Andrej