Difference between revisions of "SET ERRORVERSION"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SET ERRORVERSION=
 
 
 
==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 15: Line 8:
  
 
==See Also==
 
==See Also==
ERROR(), MESSAGE()
+
[[DB_ERRORDIR]], [[ERRNO()]], [[ERROR()]], [[MESSAGE()]], [[ON ERROR]], [[SAVE ERROR]]
  
  
 
==Description==
 
==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 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.
 
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==
 
==Example==
<pre>
+
<code lang="recital">
set errorversion on</pre>
+
set errorversion on</code>
  
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
[[Category:Set_Commands]]
+
[[Category:Set_Commands|ERRORVERSION]]
 +
[[Category:Error Handling and Debugging]]
 +
[[Category:Error Handling and Debugging Set 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