>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.
Use either a modal form, or put the DO Procedures in the Form Unload.
Craig
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer