:Menu("MENU TITLE",String1,labelcode1,[String2,labelcode2,...,String7,labelcode7])
This will create a nice looking, scrollable menu where MENU TITLE is displayed at the top of the screen as white text highlighted in black, then have Option 1 through Option N, where the number after each option will direct the user to the corresponding Lbl if the option is chosen.
Location[]
- Prgm
- CTL
- C:Menu
Example[]
:ClrHome :Menu("CHOOSE PLEASE","CAT",1,"DOG",2) :Lbl 1 :Disp "YOU CHOSE CAT" :Pause :Goto 3 :Lbl 2 :Disp "YOU CHOSE DOG" :Pause :Goto 3 :Lbl 3 :Disp "THE END"
In this program, the user is asked to chose either CAT or DOG from a menu. If they chose CAT, they see "YOU CHOSE CAT" followed by "THE END". If they chose DOG, they see "YOU CHOSE DOG" followed by "THE END".