Article View: comp.lang.basic.visual.3rdparty
Article #42Re: Terminating a program (newbie question)
From: William Sayers
Date: Tue, 11 Aug 1998 00:00
Date: Tue, 11 Aug 1998 00:00
21 lines
1520 bytes
1520 bytes
Try This, Instead of using the Terminate function use the query_unload() function and whenever anyone tries to terminate it should pop up, Then you can treminate or not depending on the return value of the Message Box. wsayers@softhome.net David Elford wrote in message <6qir1v$uq$1@nswpull.telstra.net>... >I just wanted to know about terminating a program properly. I'm aware that >using the END statement will terminate a vb program, but what about when you >click the x button in the top right corner of a form? I'd like to be able to >prompt the user with an option to save their work before exiting. I can get >a message box to appear by placing code in the form_terminate() function, >but i can't stop it from terminating. > >Any ideas would be appreciated. > >Dave > > >
Technical Details
Message-ID:
<6qq5ae$b37$1@nclient3-gui.server.virgin.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6qir1v$uq$1@nswpull.telstra.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110e3b,c80a42a5f0abeb0e X-Google-Attributes: gid110e3b,public X-Google-Thread: f5f6f,c80a42a5f0abeb0e X-Google-Attributes: gidf5f6f,public X-Google-Thread: 108062,c80a42a5f0abeb0e X-Google-Attributes: gid108062,public From: "William Sayers" <wsayers@softhome.net> Subject: Re: Terminating a program (newbie question) Date: 1998/08/11 Message-ID: <6qq5ae$b37$1@nclient3-gui.server.virgin.net> X-Deja-AN: 380147788 References: <6qir1v$uq$1@nswpull.telstra.net> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Virgin News Service Newsgroups: comp.lang.basic.visual.3rdparty,comp.lang.basic.visual.misc,cz.comp.lang.basic.visual