Difference between revisions of "SET ONERROR"

From Recital Documentation Wiki
Jump to: navigation, search
Line 1: Line 1:
=SET ONERROR=
 
 
 
 
==Class==
 
==Class==
 
Error Handling and debugging
 
Error Handling and debugging
Line 15: Line 12:
  
 
==See Also==
 
==See Also==
[[ON ERROR]], [[SET ERRORVERSION]]
+
[[DB_ERRORDIR]], [[ON ERROR]], [[SET ERRORVERSION]]
  
  
Line 23: Line 20:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
on error dialog box [Error]
 
on error dialog box [Error]
 
? on("error")
 
? on("error")
Line 29: Line 26:
  
 
set onerror off
 
set onerror off
? on("error")</pre>
+
? on("error")</code>
  
  

Revision as of 08:40, 17 April 2009

Class

Error Handling and debugging


Purpose

Disable ON ERROR error handling


Syntax

SET ONERROR ON | OFF | (<expL>)


See Also

DB_ERRORDIR, ON ERROR, SET ERRORVERSION


Description

When SET ONERROR is OFF, any ON ERROR error handling settings are disabled. To reinstate ON ERROR error handling, SET ONERROR must be set ON and the ON ERROR <command> must be reissued. This is particuarly useful for disabling ON ERROR error handling on an application or system-wide basis to allow use of the default error.mem error trapping.


Example

on error dialog box [Error]
? on("error")
dialog box [Error]
 
set onerror off
? on("error")


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer