Difference between revisions of "DOSERROR()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to return Operating System dependent error number
 
Function to return Operating System dependent error number
 
  
 
==Syntax==
 
==Syntax==
 
DOSERROR()
 
DOSERROR()
 
  
 
==See Also==
 
==See Also==
[[ERRNO()]], [[ERROR()]], [[MESSAGE()]], [[ON ERROR]]
+
[[ERRNO()]], [[ERROR()]], [[MESSAGE()]]
 
+
  
 
==Description==
 
==Description==
 
The DOSERROR() function returns the operating system dependent error number for the last error encountered.  This is useful for revealing an operating system error which may have caused an error reported by the ERROR() function.  The DOSERROR() function is synonymous with the ERRNO() function.
 
The DOSERROR() function returns the operating system dependent error number for the last error encountered.  This is useful for revealing an operating system error which may have caused an error reported by the ERROR() function.  The DOSERROR() function is synonymous with the ERRNO() function.
 
  
 
==Example==
 
==Example==
Line 19: Line 15:
 
if doserror() > 0
 
if doserror() > 0
 
     err = doserror()
 
     err = doserror()
    set message to "System error: &err"
 
 
endif
 
endif
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Error Handling and Debugging]]
 
[[Category:Error Handling and Debugging]]
 
[[Category:Error Handling and Debugging Functions]]
 
[[Category:Error Handling and Debugging Functions]]

Revision as of 08:59, 10 February 2012

Purpose

Function to return Operating System dependent error number

Syntax

DOSERROR()

See Also

ERRNO(), ERROR(), MESSAGE()

Description

The DOSERROR() function returns the operating system dependent error number for the last error encountered. This is useful for revealing an operating system error which may have caused an error reported by the ERROR() function. The DOSERROR() function is synonymous with the ERRNO() function.

Example

if doserror() > 0
    err = doserror()
endif