Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Leave .exe!!!

Status
Not open for further replies.

midou

Programmer
Oct 20, 2002
24
FR
Hi!
I'd like to leave .exe, I write in beiging programm
[CLEAR EVENTS] but It dosen't leave, any solution please?
Many thanks
 
In essence, you will have to issue a READ EVENTS to start event provcessing.

To stop event processing you should issue a CLEAR EVENTS.

As good programming practices prescribe, when you leave take care of your environment and release or close everything the right way.

In your case, you should release all your forms, close all your tables/views/cursors/databases and than issue a CLEAR EVENTS and issue QUIT.

HTH,
Weedz (Wietze Veld)
My private project:Download the CrownBase source code !!
 
Hi Weedz!
In the begining code, I make this, notes that my programm begin with form for pass word and then the menu was shown:
[_screen.caption="GESTION COMMERCIAL"
_screen.closable=.F.
DO form mot_passe
read events]
In the quit command for the menu, I make this:
[Clear events]
Many thanks for your help.
 
What you should do is to make a shutdown procedure.

Make a shutdown procedure like:

Code:
PROCEDURE ShutDownProc
 CLOSE ALL
 CLEAR ALL
 CLEAR EVENTS
 *- Be sure with the following quit this procedure is not called again
 ON SHUTDOWN
 QUIT
ENDPROC

In your main procedure put:

Code:
ON SHUTDOWN DO ShutDownProc


Now, when you issue quit, your shutdown procedure will execute. And your program should quit.

In your menu option to quit the app, just issue QUIT.

HTH,
Weedz (Wietze Veld)
My private project:Download the CrownBase source code !!
 
Many thanks Weedz, it is succeeded.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top