{"identifier":73264,"topic":"Properties","name":"ID\u00a0","text":"<code><pre>the ID of <i>button<\/i><u>\n<\/u>the ID of <i>field<\/i><u>\n<\/u>the [<i>adjective<\/i>] ID of <i>card<\/i>\nthe ID of <i>bkgnd\n<\/i>the ID of <i>menu\n<\/i>the ID [of HyperCard]\nthe ID of <i>window<\/i>\n<\/pre><\/code>\nThe<code> ID <\/code>property returns the permanent ID number of any button, field, card,  background, window, or menu in the current stack.  <br><br>\n\n The<code> ID <\/code>of HyperCard is<code> WILD<\/code>. <br>\n<br>\nThe<code> ID <\/code>of a standalone application is its creator code. <br><br>\n\n All objects except stacks have IDs. You <u>can\u2019t<\/u> change the ID number of an object, window, or menu.  <br><br>\n\n If an object doesn\u2019t have a name, HyperCard returns the<code> ID <\/code>instead. <br><br>\n\n The adjectives<code> abbreviated<\/code>,<code> long<\/code>, and<code> short <\/code>return various forms of a card\u2019s ID.  (Click Demo Script.) <br>\n","related":{"77648":"name","77883":"number (property)"},"examples":"if the id of button 1 is \"8934\" then...\nget the id of bkgnd field 2\nput the id of this card after theList\nget the id of this background\nget the id of HyperCard -- returns WILD\nget the id of the last menu","demo":"on IDDemo\n <br><br>\n\n   put \"The short ID of this card is:\" & return & \u00ac\n   the <b>short<\/b> <b>ID<\/b> of this card & return & return & \u00ac\n   \"The ID is:\" & return & \u00ac\n   the <b>ID<\/b> of this card & return & return & \u00ac\n   \"The long ID is:\" & return & \u00ac\n   the <b>long<\/b> <b>ID<\/b> of this card & return into theAnswer\n <br><br>\n\n   answer theAnswer\n end IDDemo\n ","debug":{"9":["the ID of button\rthe"],"10":["The ID of a standalo"]}}