{"identifier":34045,"topic":"Commands","name":"create","text":"<code><pre>create menu <i>menuName<\/i>\n<\/pre><\/code>\n<code>create stack <i>fileName<\/i> <\/code>[<code>with <i>bkgnd<\/i><\/code> ] \u00ac               [<code>in a new window<\/code>] <br><br>\n\n The<code> create menu <\/code>command makes a new menu and adds it to the menu bar.   HyperCard displays an error message if you try to create a menu that already exists. <br><br>\n\n Use the<code> put <\/code>command to add menu items to the new menu. (Click Related Topics for more information about<code> put<\/code>.) <br>\n<br>\nThe<code> create stack <\/code>command creates a new stack from within a handler without presenting the New Stack dialog box. The cards in the new stack are the same size as the cards in the current stack. <br><br>\n\n HyperCard sets the function<code> the result <\/code>to<code> \"Couldn't create stack.\" <\/code>if it can\u2019t create the stack; otherwise, it sets<code> the result <\/code>to<code> empty<\/code>, goes to the new stack, and sends  a<code> newStack <\/code>message to the only card in that stack (that is, the current card). <br>\n","related":{"34927":null,"69523":"checkMark","70039":"commandChar","34993":"disable","35579":"doMenu","61996":"enable","71193":"enabled","76221":"markChar","76567":"menuMessage","58014":"menus","45460":"put","45965":"reset"},"examples":"","demo":" <br><br>\n\n on createMenu\n   if there is a menu \"Sort\" then delete menu \"Sort\"\n   <b>create<\/b> menu \"Sort\"\n   put \"By name,By number,By International,-,Ascending,Descending\" \u00ac\n   into menu \"Sort\"\n   set the checkMark of menuItem 1 of menu \"Sort\" to true\n   set the checkMark of menuItem 5 of menu \"Sort\" to true\n end createMenu\n ","debug":{"9":["create menu menuName"],"10":["The create stack com"]}}