ExitProcess
Previous  Top  Next


Sub ExitProcess(ExitCode)

This function quits the current process and sets the specified Error Code.

Parameters:

ExitCode  
[in] The error code to set. This information may be available to a parent process.  
Typically a value of 0 is used to indicate no error.  

Example:
' Exit the process and indicate success  
ExitProcess 0  

Notes:
As the process exits, the scripting system will receive its Function OnEndProcess callback. Also any DLLs loaded will run their termination code so they can properly clean up.