MicroWorlds


A Menu

The Question command can be used along with answer and if to create a menu procedure. The following procedure allows the user to select which page they would like to go to. The stars and dots are used for spacing.

Enter the menu procedure on the procedures page and create a button with the instruction menu to test your menu routine. You may have to add or delete some * and s to get the correct spacing. Make sure you have at least 3 pages in your project or it will not work.

to menu
   question [**************************** MENU *****************************
    ***************** Please enter your choice *******************
    1....Page 1...........................................................
    2....Page 2...........................................................
    3....Page 3...........................................................]
    if answer = "1 [page1]
    if answer = "2 [page2]
    if answer = "3 [page3]

  end



Created by Geoff Adcock
Last Update: 23-Oct-2006