{"identifier":31855,"topic":"Commands","name":"choose","text":"<code><pre>choose tool <i>posInteger<\/i>\nchoose <i>toolName<\/i> tool<\/pre><\/code> <br><br>\n\n where <i><code>posInteger<\/i><\/code> is between 1 and 18. <br><br>\n\n The<code> choose <\/code>command chooses the tool with the specified number or name from the Tools palette.  <br><br>\n\n HyperCard sends the<code> choose <\/code>command to the current card when you choose a tool from the Tools menu. <br>\n<br>\nHyperCard passes the word <i>tool  <\/i>to the first parameter variable and the tool number to the second parameter variable. You can handle the<code> choose <\/code>command as follows: <br><br>\n\n <code><pre>on choose what, toolNumber\n   <i>statements<\/i>\nend choose<\/pre><\/code> <br>\n","related":{"27092":null,"3428":"Commands sent automatically","66705":"tool","6031":"Where messages are sent initially"},"examples":"choose browse tool\nchoose tool 1\n\nchoose button tool\nchoose tool 2\n\nchoose field tool\nchoose tool 3\n\nchoose select tool\nchoose tool 4\n\nchoose lasso tool\nchoose tool 5\n\nchoose pencil tool\nchoose tool 6\n\nchoose brush tool\nchoose tool 7\n\nchoose eraser tool\nchoose tool 8\n\nchoose line tool\nchoose tool 9\n\nchoose spray tool\nchoose tool 10\n\nchoose rectangle tool\nchoose rect tool\nchoose tool 11\n\nchoose round rectangle tool\nchoose round rect tool\nchoose tool 12\n\nchoose bucket tool\nchoose tool 13\n\nchoose oval tool\nchoose tool 14\n\nchoose curve tool\nchoose tool 15\n\nchoose text tool\nchoose tool 16\n\nchoose regular polygon tool\nchoose reg poly tool\nchoose tool 17\n\nchoose polygon tool\nchoose poly tool\nchoose tool 18","demo":"","debug":{"9":["choose tool posInteg"],"10":["HyperCard passes the"]}}