>I want the program to wait until a form (which is modal and called with noshow) has finished
its processing.You have not said in which methods and events is written the code of this processing.>========= Explanation
>....
I need not this - it is simple VFP syntax - nothing special.>
>========= Form Purpose
>The forms objective is to check for the reply file returned from the EXE. Now this return time is parameterised. The user can set the delay time that the VFP program should wait for a retrun file (SDF format) from the EXE.
Does the form (when run with NOSHOW) wait the time it is specified. How do you check the time? SECONDS()/Timer/other?>
>The user can set the option, whether this procedure should execute automatically after a specified interval or to be executed manually by the user.
I suppose you do this with Timer? Do you disable it? In what cases? Do you reenable it?>========= The Problem
>The problem is with processing the form in background mode.
>The program is calling the form, but instead of waiting for the form to finish its process, It is jumping to line no.7.
As I have said above... How do you check that the interval of time has elapsed? If it is with timer is it enabled? (Enabled = .T. ; Interval > 0). Does your form enter at all your check procedure?>I tried by putting a loop ( DO while WEXIST("chktasreply")) but it is showing a wait status in the foreground... disabling the user to do any other work.
As an option - you can allow user to do other work withDoEvents
command
HTH
Zlatin Zlatev,
MCSD (VS6)Make solutions, not programs!