Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Blinker 5.10 Online Reference - <b> swperrlev()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SWPERRLEV()
------------------------------------------------------------------------------
 Purpose:
 Get child process return code.

 Syntax:
 niValue = SWPERRLEV()

 Parameters:
 None.

 Returns:
 Child program return code.

 Description:
 This function returns the DOS exit code of the child process. The exit code
 returned is the exit code of the last process which terminated prior to the
 command interpreter returning to the swap kernel, the value of which can be
 confirmed by running the program from a DOS batch file and testing for the
 ERRORLEVEL returned by the program. In the case that the command interpreter
 was the only process executed, the return code will be that of the command
 interpreter.

 Example:
 // Attempt to swap out, compile and link a program                          
 SWPRUNCMD("Compile myprog -m",0,"","")                                      
 IF SWPERRLEV() <> 0 // compile failed                                       
    ? "Compile failed..."                                                    
 ELSE                                                                        
    SWPRUNCMD("BLINKER @LINK.LNK",0,"","")                                   
 ENDIF                                                                       

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