Script Command: exit


(Contents)(Previous)(Next)

Format:

exit {SESSION, SCRIPT, APPLICATION};

The exit command causes the script file to stop executing completely. This command differs from the idle command in that exit terminates any active on commands.

The exit command provides several levels of exiting an active script:

· SCRIPT: stops the currently running script. This is also the default behavior if you use the exit command with no exit level parameter.

· SESSION: stops the currently running script and closes the Terminal window. The user returns to the Main Menu window.

· APPLICATION: stops the currently running script, closes the Terminal window, and completely exits PC Access. The user returns to the Windows 3.1x Program Manager or the Windows 95 desktop.

Examples:

// Exit the script:

exit;

// Same as above:

exit SCRIPT;

// Exit the script and close the Terminal window:

exit SESSION;

// Completely exit PC Access:

exit APPLICATION;


(Contents)(Previous)(Next)