Building a Menu Structure ; pull-down selection and: ; event[1] will have the value of the top-level selection (menu) ; event[2] will have the value of the pull-down selection (item) menu = event[1] item = event[2] ; The outer CASE structure checks the top-level menu selection ; The inner CASE structure checks the item selected from the pull-down CASE menu OF VALUE 1: ;Menu 1 CASE item OF VALUE 1: ;code for Item 1-1 VALUE 2: ;code for Item 1-2 END VALUE 2: ;Menu 2 CASE item OF VALUE 1: ;code for Item 2-1 VALUE 2: ;code for Item 2-2 VALUE 3: ;code for Item 2-3 END VALUE 3: ;Menu 3 CASE item OF VALUE 1:
quit = TRUE ;time to quit END END ; case menu of END ; if event[1] END ; if event[0] UNTIL quit .END Implementing the above code and then clicking on Menu 2 would result in the window shown in the following figure. eV+Language User's Guide, v2.x, 18318-000 Rev A Page 168