Difference between revisions of "SET BELL"

From Recital Documentation Wiki
Jump to: navigation, search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SET BELL=
 
 
 
==Class==
 
Screen Forms
 
 
 
 
==Purpose==
 
==Purpose==
 
Enable or disable the terminal bell inside forms
 
Enable or disable the terminal bell inside forms
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
[[SET CONFIRM]], [[CHR()]], [[@...GET]], [[TONE()]]
+
[[@...GET]], [[CHR()]], [[SET CONFIRM]], [[TONE()]]
  
  
Line 23: Line 16:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
set bell off
 
set bell off
 
use patrons
 
use patrons
edit</pre>
+
edit</code>
  
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Set_Commands|BELL]]
 
[[Category:Set_Commands|BELL]]
 +
[[Category:Screen Forms]]
 +
[[Category:Screen Forms Set Commands]]

Latest revision as of 16:48, 12 November 2009

Purpose

Enable or disable the terminal bell inside forms


Syntax

SET BELL ON | OFF | (<expL>)


See Also

@...GET, CHR(), SET CONFIRM, TONE()


Description

If SET BELL is ON then the terminal bell will sound if an attempt is made to enter invalid data (e.g. alphabetic character in a numeric field), or enter more characters into a field than it can contain when SET CONFIRM is ON. This command allows the optional logical expression <expL> to be evaluated. If a value of .T. is returned, BELL is set ON. If a value of .F. is returned, BELL is set OFF. Note that <expL> should be enclosed in round brackets. By default, BELL is ON.


Example

set bell off
use patrons
edit


Products

Recital