I. EQUEL/FORMS Examples : Extended Examples : Nested Menus
 
Share this page                  
Nested Menus
Nested menus are invoked using the display submenu statement. The following example shows how the display submenu statement is used to create a nested menu:
## activate field "ename"
## {
##   display submenu
##   activate field "empage"
##   {
         do processing for field 
##       resume next
##   }
##   activate field "esal"
##   {
         do field processing for field 
##       breakdisplay
##   }
##   activate menuitem "end"
##   {
         exit the display submenu
##       enddisplay
##   }
## }