Programming Guide



jm_exit

Ends processing and leaves the current screen

jm_exit

Description

jm_exit closes the current form or window and returns to the previous one. If the form is the application's base form and the setup variable CLOSELAST_OPT is set to OK_CLOSELAST, Panther asks the user whether to exit the application.

By default, EXIT invokes this function at runtime.

Example

/* The following control string invokes a function named
process. If it returns 0, another function is
invoked to reinitialize the screen. If it returns -1,
the screen closes.
*/

^(-1=^jm_exit; 0=^reinit)process
/* This control string replaces a form or a window with another
form or a window
*/

^(0=&w2)jm_exit