Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!lindy!liemandt From: liemandt@lindy.Stanford.EDU (Joe Liemandt) Newsgroups: comp.databases Subject: Re: 4th Dimension Question Keywords: 4th Dimension, Quit Message-ID: <803@lindy.Stanford.EDU> Date: 4 Oct 88 16:44:22 GMT References: <1497@cayman.COM> Reply-To: liemandt@lindy.Stanford.EDU (Joe Liemandt) Organization: Stanford Data Center Lines: 28 In article <1497@cayman.COM> beth@cayman.COM (Beth Miaoulis) writes: > >I have a question about ACIUS' 4th Dimension.... >I'm designing a menu bar for my custom environment and >I'd like to specify a procedure to run when the user selects >the Quit item from the File menu. My question is that after >the procedure completes, how can I get it to quit from the >custom environment? It seems that if I don't specify a >procedure for the Quit item, it exits the custom environment >just fine. But.. if I want any processing to go on before the >user quits, I'm stuck. > >... >Thanks, > Beth Miaoulis There is an external procedure available from ACIUS which will do what you want. It is called QUIT4D, and it will quit to either the User environment or to the Finder when called. So, you would create a procedure "doQuit". In this procedure you would perform your clean-up operations, and then call QUIT4D. Then associate "doQuit" with the Quit menu item. There are other ways, but this should solve your problem. You can call ACIUS to get QUIT4D, it is free. Joe Liemandt Stanford University