Difference between revisions of "SAVE MENU"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SAVE MENU=
 
 
 
==Class==
 
Menus
 
 
 
 
==Purpose==
 
==Purpose==
 
Save current @...menu context
 
Save current @...menu context
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
[[ON KEY]], [[RESTORE MENU]], [[SET KEY]], [[SET KEY TO]], [[SET PCKEYS]], [[SET POSTMENU]], [[SET PREMENU]], [[MENU()]], [[MENUITEM()]]
+
[[MENU()]], [[MENUITEM()]], [[ON KEY]], [[RESTORE MENU]], [[SET KEY]], [[SET KEY TO]], [[SET PCKEYS]], [[SET POSTMENU]], [[SET PREMENU]]  
  
  
Line 28: Line 21:
 
<code lang="recital">
 
<code lang="recital">
 
procedure check_value
 
procedure check_value
save menu to m_recv
+
  save menu to m_recv
restore menu from m_recv
+
  restore menu from m_recv
 
return
 
return
 
</code>
 
</code>
Line 35: Line 28:
  
 
==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 16:38, 12 November 2009

Purpose

Save current @...menu context


Syntax

SAVE MENU [TO <memvar>]


See Also

MENU(), MENUITEM(), ON KEY, RESTORE MENU, SET KEY, SET KEY TO, SET PCKEYS, SET POSTMENU, SET PREMENU


Description

The SAVE MENU command saves a menu that can be restored again with the RESTORE MENU command. The SAVE MENU command saves the current @...MENU context, which is useful in validation and hot key procedures when you want to move off and then back on the current menu.

TO <memvar>

The optional TO <memvar> clause is used to store the current @...MENU context to a memory variable. Menus saved to a memory variable can be restored with the RESTORE FROM <memvar> command. Without the FROM <memvar> clause the RESTORE MENU command restores the last menu saved.


Example

procedure check_value
  save menu to m_recv
  restore menu from m_recv
return


Products

Recital