A very simple way to accomplish this is to make the form MODAL. Once the modal form is called the code from the calling form will not continue to run until the MODAL form is released.
Michael G. Emmons
>OK, I have been doing this for awhile now, but just have not run into this before. My code is
>Do FORM myform
>DO Procedure
>DO procedure 2
>etc...
>
>The problem is, I want the program to wait till the first form is closed before executing the next lines of code. I have thought of a few ways to trap for it, but they do not seem to be the most straight forward way. I have looked over the help files, but don't see any mention of this. I can't beleive this is the first time I have had this problem.
>The first form does critical file operations for the rest of the code to operate on.