If you have not got a solution for the close without saving question,
you can add these lines before the:
--Release the OLE object
OLE2.RELEASE_OBJ(application);
section towards the end of the code.
args:=OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, 2);
OLE2.INVOKE (application, 'FileQuit', args)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.