Difference between revisions of "SET ERRORVERSION"

From Recital Documentation Wiki
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
==Class==
 
Error Handling and Debugging
 
 
 
 
==Purpose==
 
==Purpose==
 
Cause numbered error.mem files to be created when an error occurs
 
Cause numbered error.mem files to be created when an error occurs
Line 27: Line 23:
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]

Latest revision as of 15:45, 23 November 2009

Purpose

Cause numbered error.mem files to be created when an error occurs


Syntax

SET ERRORVERSION ON | OFF | (<expL>)


See Also

DB_ERRORDIR, ERRNO(), ERROR(), MESSAGE(), ON ERROR, SAVE ERROR


Description

If SET ERRORVERSION is ON when an error occurs, instead of creating an error.mem file, an error<version number>.mem is created. The <version number> will start at 0001 for the first error file created and will be incremented with each subsequent error.

If the environment variable DB_ERRORDIR is not defined, then the error files are created in the current directory, otherwise the error files will be created in the specified directory. This command allows the optional logical expression <expL> to be evaluated. If a value of .T. is returned, ERRORVERSION is set ON. If a value of .F. is returned, ERRORVERSION is set OFF. By default ERRORVERSION is OFF.


Example

set errorversion on


Products

Recital