{"identifier":72855,"topic":"Properties","name":"icon","text":"<code>set <\/code>[<code>the<\/code>]<code> icon of <i>button<\/i> \u00ac     to <i>posInteger<\/i><\/code> <code>set <\/code>[<code>the<\/code>]<code> icon of <i>button<\/i> \u00ac     to <i>text<\/i><\/code> <br><br>\n\n where<code> <i>text<\/i> <\/code>is the name of an icon. <br><br>\n\n The<code> icon <\/code>property returns or sets the icon displayed by a button. Setting it is the same as choosing an icon from the Button Info dialog box. HyperCard sets the function<code> the result <\/code>to<code> \"Can't find that icon.\" <\/code>if it can\u2019t find the icon (otherwise<code> the result <\/code>is<code> empty<\/code>). <br>\n<br>\nThe value of the<code> icon <\/code>property is an integer corresponding to the ID number of an available icon resource. If a button has no icon, the<code> icon <\/code>property is 0. For an icon to be displayed on a button, its resource must be available in the current stack, one of the stacks currently being used, the Home stack, or HyperCard itself. <br><br>\n\n                           Click the goldfish bowl                           to see simple icon                           animations. <br>\n","related":{"62431":"result"},"examples":"","demo":"","debug":{"9":["set [the] icon of bu"],"10":["The value of the ico"]}}