<doc>
  <legacy_id>1644</legacy_id>
  <name>altID</name>
  <type>property</type>
  <syntax>
    <example>set the altID of <i>object</i> to <i>IDNumber</i></example>
  </syntax>
  <library></library>
  <objects>
    <stack/>
    <card/>
    <group/>
    <field/>
    <button/>
    <graphic/>
    <scrollbar/>
    <player/>
    <image/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Objects &amp; Messages</category>
  </classification>
  <references>
    <message tag="IDChanged">IDChanged Message</message>
    <property tag="ID">ID Property</property>
    <property tag="windowID">windowID Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Specifies an alternate ID for <glossary tag="object">objects</glossary>.</summary>
  <examples>
    <example>put the altID of this card into myID</example>
    <example>repeat while the altID of stack myStack &lt;&gt; 0</example>
  </examples>
  <description>
    <p>Use the <b>altID</b> <glossary tag="property">property</glossary> to specify an additional ID for an <glossary tag="object">object</glossary>. Both the <property tag="ID">ID</property> and the <b>altID</b> <glossary tag="property">property</glossary> are checked when you refer to an <glossary tag="object">object</glossary> by ID.</p><p/><p><b>Value:</b></p><p>The <b>altID</b> property of an <glossary tag="object">object</glossary> is a non-negative integer.</p><p/><p>By default, the <b>altID</b> for all <glossary tag="object">objects</glossary> is zero.</p><p/><p><b>Comments:</b></p><p>This property can be used to ensure compatibility with imported SuperCard and HyperCard stacks that assume buttons and fields are created with sequential IDs. You can also use the <b>altID</b> of a <object tag="stack">stack</object> as a consistent way of referring to it, since the <property tag="ID">ID</property> of a <object tag="stack">stack</object> changes every time an <glossary tag="object">object</glossary> is created.</p><p/><p><code/><img src="202653"/> <b>Important!</b><code/> Be careful not to set an <glossary tag="object">object's</glossary> <b>altID</b> <glossary tag="property">property</glossary> to the <property tag="ID">ID</property> of an <glossary tag="object">object</glossary> of the same type. Since both <property tag="properties">properties</property> are checked when you refer to an <glossary tag="object">object</glossary> by ID, doing this may cause the wrong <glossary tag="object">object</glossary> to be found because its <b>altID</b> <glossary tag="property">property</glossary> is the same as the <property tag="ID">ID</property> of the <glossary tag="object">object</glossary> you want.</p>
  </description>
</doc>