<doc>
  <legacy_id>1529</legacy_id>
  <name>mainStacks</name>
  <type>function</type>
  <syntax>
    <example>the mainStacks</example>
    <example>mainStacks()</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Objects &amp; Messages</category>
  </classification>
  <references>
    <property tag="defaultStack">defaultStack Property</property>
    <property tag="mainStack">mainStack Property</property>
    <property tag="name">name Property</property>
    <function tag="openStacks">openStacks Function</function>
    <function tag="revLoadedStacks">revLoadedStacks Function</function>
    <function tag="stacks">stacks Function</function>
    <property tag="substacks">substacks Property</property>
    <function tag="topStack">topStack Function</function>
    <message tag="reloadStack">reloadStack Message</message>
    <property tag="stackFiles">stackFiles 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><glossary tag="return">Returns</glossary> a list of the <glossary tag="main stack">main stacks</glossary> that are <glossary tag="loaded into memory">loaded into memory</glossary>.</summary>
  <examples>
    <example>the mainStacks</example>
    <example>repeat while myStack is among the lines of the mainStacks</example>
  </examples>
  <description>
    <p>Use the <b>mainStacks</b> <control_st tag="function">function</control_st> to find out which <glossary tag="main stack">main stacks</glossary> are currently available.</p><p/><p><b>Value:</b></p><p>The <b>mainStacks</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a list with the short <property tag="name">name</property> <glossary tag="property">property</glossary> of each <glossary tag="main stack">main stack</glossary>, one <object tag="stack">stack</object> per <keyword tag="line">line</keyword>.</p><p/><p><b>Comments:</b></p><p>Stacks that have not yet been saved are included in the list.</p><p/><p>The list includes stacks that are part of the LiveCode development environment (such as the message box and menu bar).</p>
  </description>
</doc>