{"identifier":86868,"topic":"Properties","name":"top","text":"<code><pre>the top of <i>card<\/i><u>\n<\/u>\nset <\/pre><\/code>[<code>the<\/pre><\/code>]<code> top of <i>button<\/i> to <i>Integer<\/i> set <\/code>[<code>the<\/code>]<code> top of <i>field<\/i> to <i>Integer<\/i> set <\/code>[<code>the<\/code>]<code> top of <i>window<\/i> to <i>Integer<\/i> set <\/code>[<code>the<\/code>]<code> top of menuBar <br><br>\n\n <\/code>The<code> top <\/code>property returns or sets an integer equal to item 2 of an element\u2019s rectangle. If you set the top of an object, it moves vertically; the object's size remains the same. You can\u2019t set<code> the top <\/code>of cards: use the<code> rect<\/code>,<code> height<\/code>, and<code> width<\/code> properties to resize the cards in a stack. <br>\n<br>\nYou can't set<code> the top <\/code>of the menu bar.<code> <\/code> <br><br>\n\n HyperCard determines<code> the top <\/code>of buttons, fields, and HyperCard\u2019s built-in windows relative to the top-left corner of the current card.  <br><br>\n\n HyperCard determines<code> the top <\/code>of the card window relative to the top-left corner of the screen with the menu bar. <br>\n","related":{"85301":"bottom","91818":"bottomRight","86710":"height","74022":"left","74795":"location","79936":"rectangle","86116":"right","62877":"screenRect","81344":"scroll","87153":"topLeft","89143":"width"},"examples":"the top of card button 1\nthe top of bkgnd field id 34\nthe top of this card\nthe top of message box\nthe top of tool window\nthe top of card window\n\nset the top of bkgnd button \"Next\" to the top of bg btn \"Prev\"","demo":"","debug":{"9":["the top of card\r\rset"],"10":["You can't set the to"]}}