getexitcode
 getexitcode | 
   
  Purpose
 
  
  Synopsis
 
 function getexitcode(mo:Model):integer
 
  Argument
 
 | 
     
     mo 
       | 
   
     
     A model
       | 
  
  Return value
 
 
 Exit code of the last execution or 0
 
  Further information
 
 
 1. The exit code of the last execution corresponds to the value stated via a call to the procedure
 exit. The default exit value (
 i.e. procedure
 exit has not been called) is 0.
 
 
 2. The value of the exit code is defined only when the execution of the model succeeded (
 i.e. its status is
 RT_OK). This function will return
 0 before the model is executed or after a runtime error.
 
 
  Related topics
 
  
  Module
 
 
