Making Menus

From Shopbot Wiki

(Difference between revisions)

Admin (Talk | contribs)
(New page: You can use the PRINT command to create a table of options in the message window so that the operator can read them, and then get their selection using an INPUT statement. :''PRINT "Cutt...)
Next diff →

Revision as of 18:38, 8 February 2008

You can use the PRINT command to create a table of options in the message window so that the operator can read them, and then get their selection using an INPUT statement.


PRINT "Cutting options"
PRINT
PRINT "1) LEFT SIDE"
PRINT "2) RIGHT SIDE"
PRINT "3) TOP"
PRINT "4) BOTTOM"
PRINT "5) SHELF"
PRINT "6) DIVIDER"
PRINT "7) Quit"
INPUT "Look at the list in the message box and type your choice...1-7" &mychoice


Here's what the menu will look like:

Image:Billyoung_MessageMenu.jpg

and here's what the INPUT statement that goes with it would look like:

Image:Billyoung_InputMenu.jpg

NOTE: The message window can be moved around and resized the way you want it and it's new location and size will be remembered.
Personal tools