{"identifier":78788,"topic":"Properties","name":"polySides","text":"<code> set <\/code>[<code>the<\/code>]<code> polySides to <i>posInteger<\/i> <\/code> where<code> <i>posInteger<\/i> <\/code>is 0 or a number from 3 to 50. <br><br>\n\n The<code> polySides <\/code>property returns or sets the number of sides of a polygon created by the Regular Polygon tool.  Set<code> polySides <\/code>to 0 to draw a circle. <br><br>\n\n (You can also select one of six standard polygons by choosing Polygon Sides from the Options menu.) <br>\n<br>\n If you set<code> polySides <\/code>to a number lower than 3 (other than 0) or higher than 50, it automatically reverts to 3 or 50. <br>\n","related":{"45965":"reset"},"examples":"","demo":"<code><pre>on polySidesDemo\n  show bkgnd field \"demo field\"\n  setUpPaint\n  set dragspeed to 250\n  put \"50,16,12,10,9,8,7,6,5,4,3\" into theSides\n  repeat with itemNum = 1 to the number of items in theSides\n    set <b>polysides<\/b> to (item itemNum of theSides)\n    drag from \"240,160\" to \"240,250\"\n  end repeat\n  displayMessage \"Click the mouse\" & return & \"to continue . . .\"\n  set the cursor to arrow\n  wait until the mouseClick\n  domenu \"revert\"\n  hide bkgnd field \"demo field\"\n  choose browse tool\nend polySidesDemo\non setUpPaint\n  show card picture\n  set lineSize to 1\n  choose regular polygon tool\n  set the pattern to 1\n  set centered to true\n  set filled to true\n  set grid to false\nend setUpPaint<\/pre><\/code>\n ","debug":{"9":["\rset [the] polySides"],"10":["\rIf you set polySide"]}}