Difference between revisions of "SET ASSERTS"

From Recital Documentation Wiki
Jump to: navigation, search
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Class==
 
Error Handling and Debugging
 
 
 
 
==Purpose==
 
==Purpose==
 
Enable or disable the display of assert message dialogs
 
Enable or disable the display of assert message dialogs
Line 37: Line 33:
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Set_Commands|ASSERTS]]
 
[[Category:Set_Commands|ASSERTS]]
 +
[[Category:Error Handling and Debugging]]
 +
[[Category:Error Handling and Debugging Set Commands]]

Latest revision as of 16:41, 12 November 2009

Purpose

Enable or disable the display of assert message dialogs


Syntax

SET ASSERTS ON | OFF | (<expL>)


See Also

ASSERT, DEBUG


Description

The SET ASSERTS command is used to enable or disable the display of assert message dialogs. Assert messages are used for program debugging purposes. The ASSERT command checks a specified condition and displays a message dialog if the condition evaluates to False (.F.). The dialog provides options to Debug, Cancel, Ignore and Ignore All.

When SET ASSERTS is ON, the display of assert message dialogs is enabled. When SET ASSERTS is OFF, the display of assert message dialogs is disabled. By default, SET ASSERTS is OFF.


Example

// config.db
...
set asserts on
...
// end
 
// program
parameters para1, para2, para3
assert pcount() = 3 message [3 parameters required]
// code continues
return


Products

Recital