Difference between revisions of "SET RUNWAIT"

From Recital Documentation Wiki
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SET RUNWAIT=
 
 
 
==Class==
 
Recital Terminal Developer Environment
 
 
 
 
==Purpose==
 
==Purpose==
Enable or disable the ’wait message’ after RUN/! Commands and RUN() function.
+
Enable or disable the ’wait message’ after RUN / ! / !! Commands and RUN() function.
  
  
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
[[!]], [[RUN]], [[SET RUNCLEAR]], [[RUN()]], [[DB_RUNLOG]]
+
[[!]], [[!!]], [[DB_RUNLOG]], [[DB_RUNOPTS]], [[DB_RUNOPTS2]], [[RUN]], [[RUN()]], [[SET RUNCLEAR]]
  
  
 
==Description==
 
==Description==
The SET RUNWAIT command controls whether a wait message is displayed after execution of a RUN/! Command or RUN() function.  By default SET RUNWAIT is OFF.
+
The SET RUNWAIT command controls whether a wait message is displayed after execution of a RUN / ! / !! Command or RUN() function.  By default SET RUNWAIT is OFF.
  
 
This command allows the optional logical expression <expL> to be evaluated.  If a value of .T. is returned, RUNWAIT is set ON, otherwise it is set OFF.
 
This command allows the optional logical expression <expL> to be evaluated.  If a value of .T. is returned, RUNWAIT is set ON, otherwise it is set OFF.
Line 25: Line 18:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
dialog message [Backup data tables to tape?]
 
dialog message [Backup data tables to tape?]
 
if chr(lastkey()) = [Y]
 
if chr(lastkey()) = [Y]
set runclear on
+
    set runclear on
set runwait on
+
    set runwait on
run tar cvf /dev/rmt0 *.db*
+
    run tar cvf /dev/rmt0 *.db*
set runwait off
+
    set runwait off
set runclear off
+
    set runclear off
endif</pre>
+
endif
 +
</code>
  
  
 
==Products==
 
==Products==
Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Set_Commands|RUNWAIT]]
 
[[Category:Set_Commands|RUNWAIT]]
 +
[[Category:Terminal Environment]]
 +
[[Category:Terminal Environment Set Commands]]

Latest revision as of 15:29, 25 November 2009

Purpose

Enable or disable the ’wait message’ after RUN / ! / !! Commands and RUN() function.


Syntax

SET RUNWAIT ON | OFF | (<expL>)


See Also

!, !!, DB_RUNLOG, DB_RUNOPTS, DB_RUNOPTS2, RUN, RUN(), SET RUNCLEAR


Description

The SET RUNWAIT command controls whether a wait message is displayed after execution of a RUN / ! / !! Command or RUN() function. By default SET RUNWAIT is OFF.

This command allows the optional logical expression <expL> to be evaluated. If a value of .T. is returned, RUNWAIT is set ON, otherwise it is set OFF.


Example

dialog message [Backup data tables to tape?]
if chr(lastkey()) = [Y]
    set runclear on
    set runwait on
    run tar cvf /dev/rmt0 *.db*
    set runwait off
    set runclear off
endif


Products

Recital