[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
SWPERRMAJ
------------------------------------------------------------------------------
Function : Get the swap system major error code
Syntax : niValue = SWPERRMAJ()
Return : Swap system major error code
If an error occurs during the swap process, the SWPRUNCMD() function
will return false. This function returns the major error code,
indicating the type of error that occurred.
Example :
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 @myscr",0,"","")
ELSE
?"Compile failed - errorlevel ",err_lev
ENDIF
ENDIF
See Also:
SWPERRMIN()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson