SET ERRORVERSION

From Recital Documentation Wiki
Jump to: navigation, search

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