<doc>
  <legacy_id>1569</legacy_id>
  <name>localNames</name>
  <type>function</type>
  <syntax>
    <example>the localNames</example>
    <example>localNames()</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
  </classification>
  <references>
    <command tag="local">local Command</command>
    <function tag="globalNames">globalNames Function</function>
  </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 all <glossary tag="local variable">local variables</glossary>.</summary>
  <examples>
    <example>the localNames</example>
    <example>repeat with x = 1 to the number of items of line 2 of the localNames</example>
  </examples>
  <description>
    <p>Use the <b>localNames</b> <control_st tag="function">function</control_st> to determine which <glossary tag="local variable">local variables</glossary> are available to the current <glossary tag="handler">handler</glossary>, or to make sure a <glossary tag="local variable">local variable</glossary> name has not already been used before <glossary tag="declare">declaring</glossary> it.</p><p/><p><b>Value:</b></p><p>The <b>localNames</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a <function tag="value">value</function> consisting of three lines:</p><p/><p>        1. Parameters passed to the current handler</p><p>        2. Local variables created in the current handler</p><p>        3. Local variables created in the current script but outside all handlers</p><p/><p><b>Comments:</b></p><p>Local variables are created either implicitly, by putting a value into them, or explicitly with the <b>local</b> <glossary tag="command">command</glossary>. They can be deleted with the <command tag="delete variable">delete variable</command> <glossary tag="command">command</glossary>.</p>
  </description>
</doc>