[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SWPERRMIN()                   Get swap system minor error code
------------------------------------------------------------------------------

 Function : Get the swap system minor error code

 Syntax   : niValue = SWPERRMIN()

 Return   : Minor error code

 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.

 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() 1220: Swap error
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson