Difference between revisions of "SET POSTMENU"

From Recital Documentation Wiki
Jump to: navigation, search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SET POSTMENU=
 
 
 
==Class==
 
Screen Forms
 
 
 
 
==Purpose==
 
==Purpose==
 
Designate an event-driven trigger to execute as a menu in a form file is exited
 
Designate an event-driven trigger to execute as a menu in a form file is exited
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
@...GET, @...MENU, CREATE SCREEN, MODIFY SCREEN, SAVE MENU, SET PREMENU, SET PREFORM, SET POSTFORM, SET PRERECORD, RESTORE MENU
+
[[@...GET]], [[@...MENU]], [[APPEND]], [[CHANGE]], [[CREATE SCREEN]], [[EDIT]], [[FMT()]], [[Function Keys]], [[INSERT]], [[MENU]], [[MODIFY SCREEN]], [[QUERY]], [[RESTORE MENU]], [[SAVE MENU]], [[SET PREFORM]], [[SET PREMENU]], [[SET PRERECORD]], [[SET POSTFORM]]
  
  
Line 23: Line 16:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
procedure post_proc
 
procedure post_proc
use employee
+
  use employee
set format to employee
+
  set format to employee
 
return
 
return
  
Line 37: Line 30:
 
set postmenu to post_proc
 
set postmenu to post_proc
 
edit
 
edit
return</pre>
+
return
 +
</code>
  
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
[[Category:Set_Commands]]
+
[[Category:Set_Commands|POSTMENU]]
 +
[[Category:Menus]]
 +
[[Category:Menus Set Commands]]
 +
[[Category:Screen Forms]]
 +
[[Category:Screen Forms Set Commands]]
 +
[[Category:Triggers]]
 +
[[Category:Triggers Set Commands]]

Latest revision as of 16:56, 23 November 2009

Purpose

Designate an event-driven trigger to execute as a menu in a form file is exited


Syntax

SET POSTMENU TO [<program | procedure> | (<expC>)]


See Also

@...GET, @...MENU, APPEND, CHANGE, CREATE SCREEN, EDIT, FMT(), Function Keys, INSERT, MENU, MODIFY SCREEN, QUERY, RESTORE MENU, SAVE MENU, SET PREFORM, SET PREMENU, SET PRERECORD, SET POSTFORM


Description

The POSTMENU trigger procedure executes a procedure whenever a menu is exited from within the format file. The SET POSTMENU TO <procedure-name> command defines the procedure or program name to be executed. The filename can be substituted with a <expC>, enclosed in round brackets, which returns a valid filename. The SET POSTMENU trigger can also be defined from within the SCREEN PAINTER work surface. The POSTMENU procedure option from the TRIGGERS menu is used to define the trigger name. The [HELP] key may be pressed here to edit the trigger file from inside the SCREEN PAINTER. The SET POSTMENU TO command clears the active <program/procedure>.


Example

procedure post_proc
  use employee
  set format to employee
return
 
clear
clear all
set exclusive off
 
use company
set form to company
set postmenu to post_proc
edit
return


Products

Recital