SET ERRORVERSION

From Recital Documentation Wiki
Revision as of 16:16, 1 June 2009 by Yvonnemilne (Talk | contribs)

Jump to: navigation, search

Class

Error Handling and Debugging


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 Mirage Server, Recital Terminal Developer