Mike, The CLOSEWINDOW command is the very last command before the RETURN. Just prior to the below code is a WHILE ENDWHILE command having to do with the emails that go to our customers. When tracing the code, I get no errors. The confusion is why it works in 7.6 but not in 9.5?
LABEL endbol -- Drop Temp Views B4 creating. SET ERROR MESSAGE 677 OFF SET ERROR MESSAGE 2038 OFF DROP VIEW view_bolship DROP VIEW view_ordship DROP VIEW tpartused DROP VIEW tpartalup DROP TABLE tpartuseup DROP VIEW vcustshipinfo DROP TABLE tnoship DROP TABLE tbolship DROP TABLE tshipinfocust SET ERROR MESSAGE 677 ON SET ERROR MESSAGE 2038 ON -- Clear variables and drop tables. CLEAR VAR vemcount, vbol, vto, vsubject, vcc, vbcc, vbody, vattachments, + vsenddirect, vparameters, vpipe, vquote, vdummy, vfilename, vbolship, dummy, + vnewdate, vnoship, vendkey, iv%, vnnote, vpcount, vrptcapbox, vrptmsg, + vemailaddresses, vjemail, vtemail, vdatetext, vboldate, vemresult, vlastkey CLOSEWINDOW RETURN -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mike Byerley Sent: Saturday, February 09, 2013 8:36 AM To: RBASE-L Mailing List Subject: [RBASE-L] - Re: closewindow put a Pause 2 using 'Code Executed To This Point' before the CLOSEWINDOW to see if something else isn't completed yet and it's just not getting to the CLOSEWINDOW. ----- Original Message ----- From: "Jim Belisle" <[email protected]> To: "RBASE-L Mailing List" <[email protected]> Sent: Saturday, February 09, 2013 8:59 AM Subject: [RBASE-L] - closewindow We are changing over to 9.5 latest build from 7.6 and I am still in the testing mode. I have a form that verifies shipments, then sends out emails to our customers automatically. Once the emails are done the CLOSEWINDOW code closes the form. This works fine in 7.6. However in 9.5 the form does not close. It will only close if I hit the escape key. In both 7.6 and 9.5 the code is located in a bit button on the form. James Belisle Making Information Systems People Friendly Since 1990

