| APPENDMENUCOMMAND | |
| Syntax | APPENDMENUCOMMAND menuname itemname list
|
| Explanation | The APPENDMENUCOMMAND command appends a new
menu item to an existing menu which may then be selected
by the user. Its first input is the name of the menu where
the item is to be appended to, and the second input is the
name of the item to be appended. Both inputs are case sensitive.
The third input is a list of Logo commands that are executed
when the menu item is selected. If the menu item name begins
with a dash (-) character, a separator line is added to the menu and the
command list is ignored. The output is the command number that Logo
assigns to the new menu item.
See also APPENDMENU, DELETEMENU, APPENDMENUITEM, DELETEMENUITEM, FINDMENUID, COMMAND and ONCOMMAND. |
| Examples | APPENDMENUCOMMAND "File
"|Choose Me| [PRINT "Chosen!] Result: 30000 (a new menu Item "Choose me" appears on the "File" menu) |