<doc>
  <legacy_id>2229</legacy_id>
  <name>HCAddressing</name>
  <type>property</type>
  <syntax>
    <example>set the HCAddressing of <i>stack</i> to {true | false}</example>
  </syntax>
  <library></library>
  <objects>
    <stack/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Objects &amp; Messages</category>
  </classification>
  <references>
    <property tag="backgroundBehavior">backgroundBehavior 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>Determines whether <glossary tag="grouped control">grouped fields</glossary> and <glossary tag="card control">card buttons</glossary> are assumed if the <keyword tag="field">field</keyword> or <glossary tag="button">button's</glossary> <glossary tag="domain">domain</glossary> is not specified.</summary>
  <examples>
    <example>set the HCAddressing of stack nextImport to true</example>
  </examples>
  <description>
    <p>Use the <b>HCAddressing</b> <glossary tag="property">property</glossary> for compatibility with <keyword tag="top">HyperCard</keyword>.</p><p/><p><b>Value:</b></p><p>The <b>HCAddressing</b> of a <object tag="stack">stack</object> is true or false.</p><p/><p>By default, the <b>HCAddressing</b> of <function tag="stacks">stacks</function> you create in LiveCode is set to false.</p><p/><p><b>Comments:</b></p><p>When you open a HyperCard stack and convert it to a LiveCode stack, the new stack's <b>HCAddressing</b> <glossary tag="property">property</glossary> is set to true.</p><p/><p>If the <b>HCAddressing</b> <glossary tag="property">property</glossary> is set to true, <glossary tag="expression">expressions</glossary> in the <glossary tag="stack">stack's</glossary> <glossary tag="script">scripts</glossary> that refer to <glossary tag="field">fields</glossary> without specifying <keyword tag="card">card</keyword> or <object tag="group">background</object> are assumed to refer to <glossary tag="grouped control">grouped controls</glossary>, and <glossary tag="expression">expressions</glossary> that refer to other control types are assumed to refer to <glossary tag="card control">card controls</glossary>. For example,<code> the number of fields </code>reports the number of grouped fields, while<code> button 5 </code>refers to the fifth card button. Also, the <glossary tag="value">values</glossary> reported by the <keyword tag="long">long</keyword> or <keyword tag="abbreviated">abbreviated</keyword> <property tag="name">name</property> and <property tag="ID">ID</property> <property tag="properties">properties</property> of <glossary tag="control">controls</glossary> include "card" or "background" as the first word, depending on whether the <keyword tag="control">control</keyword> is part of a <command tag="group">group</command>.</p><p/><p>If the <b>HCAddressing</b> <glossary tag="property">property</glossary> is false, <glossary tag="expression">expressions</glossary> that refer to <glossary tag="field">fields</glossary> or <glossary tag="button">buttons</glossary> without specifying <keyword tag="card">card</keyword> or <object tag="group">background</object> are assumed to refer to all <glossary tag="field">fields</glossary> or <glossary tag="button">buttons</glossary>. For example,<code> the number of fields </code>reports the total number of card and <object tag="group">background</object> <glossary tag="field">fields</glossary>, and<code> button 5 </code>refers to the fifth button.</p><p/><p>If a stack's <b>HCAddressing</b> <glossary tag="property">property</glossary> is true, the <property tag="style">style</property> <glossary tag="property">property</glossary> of a <keyword tag="button">button</keyword> whose <b>style</b> is "menu" reports "popup" instead. This is because HyperCard uses a style setting of "popup" to designate popup menus.</p>
  </description>
</doc>