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> swperrmin()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SWPERRMIN()
------------------------------------------------------------------------------
 Purpose:
 Get the swap system minor error code.

 Syntax:
 niValue = SWPERRMIN()

 Parameters:
 None.

 Returns:
 Minor error code.

 Description:
 If an error occurs during the swap process, the SWPRUNCMD() will return
 false. SWPERRMIN() returns the minor error code, indicating the type of
 error that occurred.

 The major and minor error codes and their meanings are listed in the section
 Swap and run messages in Chapter 11, Error messages.

 Example:
 // Attempt to swap out, compile and link a program                          
 success = SWPRUNCMD("Compile myprog -m",0,"","")                            
 IF .NOT. success                                                            
    ? "Swap failed..."                                                       
    ? "Major Error Number ",SWPERRMAJ()                                      
    ? "Minor Error Number ",SWPERRMIN()                                      
 ELSE                                                                        
    err_lev = SWPERRLEV()                                                    
    IF err_lev = 0                                                           
       SWPRUNCMD("BLINKER @LINK.LNK",0,"","")                                
    ELSE                                                                     
       ? "Compile failed - errorlevel ", err_lev                             
    ENDIF                                                                    
 ENDIF                                                                       

See Also: SWPERRMAJ()

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