> It works reliably, it saves all the data and returns to the underlying > application.
This is only surmise: R:Base defers execution of the CLOSEWINDOW statement until the end of the EEP (try putting CLOSEWINDOW; PAUSE; RETURN in an EEP, you will see the PAUSE). If you open and close another form between the time you invoke CLOSEWINDOW and the time it should be executed, R:Base has probably reset the flag telling it to close the current window -- and even if it hasn't, it can see the current window (the ENTER USING) is closed anyway. Try ENTER USING CLOSEWINDOW RETURN and see if that works. -- Larry
