Difference between revisions of "ERRORLEVEL()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Return or set an exit value
 
Return or set an exit value
 
  
 
==Syntax==
 
==Syntax==
 
ERRORLEVEL([<expN>])
 
ERRORLEVEL([<expN>])
 
  
 
==See Also==
 
==See Also==
 
[[QUIT]]
 
[[QUIT]]
 
  
 
==Description==
 
==Description==
 
The ERRORLEVEL() function is used to return or set the exit value of a program.  The <expN> is the error level setting that will be returned to the operating system when QUIT is executed.  When no level is specified, ERRORLEVEL() returns the current setting.  This function is useful for setting up serial program execution.
 
The ERRORLEVEL() function is used to return or set the exit value of a program.  The <expN> is the error level setting that will be returned to the operating system when QUIT is executed.  When no level is specified, ERRORLEVEL() returns the current setting.  This function is useful for setting up serial program execution.
 
  
 
==Example==
 
==Example==
Line 20: Line 16:
 
quit
 
quit
 
</code>
 
</code>
 
  
 
==Products==
 
==Products==
Recital Server, Recital
+
Lianja Server, Lianja
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Error Handling and Debugging]]
+
[[Category:Error Handling]]
[[Category:Error Handling and Debugging Functions]]
+

Latest revision as of 10:18, 4 February 2013

Purpose

Return or set an exit value

Syntax

ERRORLEVEL([<expN>])

See Also

QUIT

Description

The ERRORLEVEL() function is used to return or set the exit value of a program. The <expN> is the error level setting that will be returned to the operating system when QUIT is executed. When no level is specified, ERRORLEVEL() returns the current setting. This function is useful for setting up serial program execution.

Example

oldlevel = errorlevel(10)
quit

Products

Lianja Server, Lianja