Designate an event-driven trigger to execute as a menu in a form file is exited
SET POSTMENU TO [<program | procedure> | (<expC>)]
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>.
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