{"identifier":47503,"topic":"Commands","name":"set","text":"<code>set <\/code>[<code>the<\/code>]<code> <i>property<\/i> to <i>expression<\/i><\/code> <code>set <\/code>[<code>the<\/code>]<code> <i>property<\/i> of <i>object<\/i> \u00ac     to <i>expression<\/i><\/code> <code><pre>\nset <\/pre><\/code>[<code>the<\/pre><\/code>]<code> <i>property<\/i> of <i>window<\/i> \u00ac     to <i>expression<\/i><\/code> <code>set <\/code>[<code>the<\/code>]<code> property of <\/code>[<i><code>menuItem<\/i> of<\/code>]<code> \u00ac      <i>menu<\/i> to <i>expression<\/i> set <\/code>[<code>the<\/code>]<code> <i>property<\/i> of <i>chunk<\/i> \u00ac     of <i>field<\/i> to <i>expression<\/i><\/code> <br><br>\n\n Note:<code> <i>expression<\/i> <\/code>must yield a valid setting for the specified property. <br>\n<br>\nThe<code> set <\/code>command changes the state of a specified property. If the object or element to which the property belongs is not specified, the property must be a global property or painting property.  <br><br>\n\n You can use the Info dialog box of an object to set many of its properties. <br>\n","related":{"27092":null,"38686":"get","45460":"put"},"examples":"set the userLevel to 5\nset the style of bkgnd button 1 to rectangle\nset the wideMargins of card field id 34 to true\nset the cantModify of this stack to true\n\nset the top of Message box to (bottom of this card + 12)\nset the scroll of card window to 0,0\n\nset the enabled of menu 2 to false\nset the cmdChar of first menuItem of second menu to \"0\"\n\nset the textSize of field \"Index\" to (the textSize of field \"Index\" + 4)\nset the textStyle of the clickChunk to bold\nset the visible of menuBar to false","demo":"on madScroller\n   put the rect of card window into theRect\n   <b>set<\/b> the rect of card window to left of cd window,top of cd window,\u00ac\n   left of cd window + 172, top of cd window + 64\n   repeat 10 times\n     <b>set<\/b> the scroll of card window to \u00ac\n     random(width of this card),random(height of this card)\n     wait 30\n   end repeat\n   <b>set<\/b> the rect of card window to theRect\n end madScroller\n ","debug":{"9":["set [the] property t"],"10":["The set command chan"]}}