GETERRLVL
(Function)
[Version 1.98 or later]

Gets the error level.

GETERRLVL(<Numeric expression>)

This function gets the level of the error code specified by <Numeric expression>.

If the related error has not occurred, this function returns "-1."

PROGRAM PRO1
|
|
------------
|
|
I1 = GETERRLVL(&H6001)
|
'Get the error level of error code "6001."
|
------------
|
|
END
|
|