Return to Statement


Choose Single Option Example 2

The following program which uses an array is comparable to Example 1.

   STRING/MENU(5,20)
DATA/MENU,'SEL. PRINC. PLANE','XY Plane',$
'YZ Plane','ZX Plane','AUX PLANE'
L0:
CHOOSE/MENU(1..4),DEFLT,1,RSP
JUMP/L0:,L5:,,,L1:,L2:,L3:,RSP
L1: $$$$$ option #1 $$$$$
VIEW/1
JUMP/L4:
L2: $$$$$ option #2 $$$$$
VIEW/3
JUMP/L4:
L3: $$$$$ option #3 $$$$$
VIEW/2
L4:
MESSG/'VIEW CHANGED'
L5:

The previous example programs would display the following cue line and dialog box:


Example Cue Line and Dialog Box