Difference between revisions of "NOEXIT"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=NOEXIT=
 
 
 
==Class==
 
Menus
 
 
 
 
==Purpose==
 
==Purpose==
 
Cause control to remain within a menu after a menu option has been selected
 
Cause control to remain within a menu after a menu option has been selected
Line 25: Line 18:
 
<code lang="recital">
 
<code lang="recital">
 
procedure calendar
 
procedure calendar
calendar menu at 2,27
+
  calendar menu at 2,27
noexit
+
  noexit
 
return
 
return
 +
 +
@1,2 menu "exit";
 +
  command "quit";
 +
  help "exit the system"
 +
@1,10 menu "calendar";
 +
  command "do calendar";
 +
  help "display a calendar"
 +
menu exit
 
</code>
 
</code>
  
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Menus]]
 +
[[Category:Menus Commands]]

Latest revision as of 15:41, 12 November 2009

Purpose

Cause control to remain within a menu after a menu option has been selected


Syntax

NOEXIT


See Also

@...MENU, MENU, MENU AT, MENU COMMAND, MENU FIELDS, MENU FILES, MENU FORMAT, MENU FRAME, MENU QUERY, MENU SCOPE


Description

The NOEXIT command can be used in conjunction with the MENU EXIT command to cause control to remain within the menu after a command is executed. Normally, when the EXIT keyword is used with the MENU command, the menu is exited after a menu item is selected and the associated commands executed. If the NOEXIT command is executed as one of the commands associated with a menu item, then the menu will not be exited.


Example

procedure calendar
  calendar menu at 2,27
  noexit
return
 
@1,2 menu "exit";
  command "quit";
  help "exit the system"
@1,10 menu "calendar";
  command "do calendar";
  help "display a calendar"
menu exit


Products

Recital