Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_onquit( <cprocedure> ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_ONQUIT( <cProcedure> )


Parameters

<cProcedure>
Name of the procedure to execute.


Returns

NIL


Description

Executes an "epilogue" procedure when the application ends with a 
Clipper error (including an internal error). You can use it for high 
priority tasks-COMMIT, CLOSE, etc.-that must be performed before 
returning to DOS.

This function assumes that Clipper is in an internal state that will 
permit it to execute a Clipper procedure. For critical error 
shutdown, use N_SECURE() in addition to or instead of N_ONQUIT(). 
N_SECURE() does not perform Clipper procedures and is almost sure to 
work, even if Clipper has died. If N_SECURE() fails, it is almost 
certain that the station has hung and must be rebooted.


Example

N_ONQUIT('AbEnd')
.
.
.
PROCEDURE AbEnd
   COMMIT
   CLOSE DATABASES
   CLEAR ALL
   N_LOGOUT()
RETURN



See Also: N_SECURE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson