<doc>
  <legacy_id>1414</legacy_id>
  <name>revAppVersion</name>
  <type>function</type>
  <syntax>
    <example>revAppVersion()</example>
  </syntax>
  <library>Common library</library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>The System Environment</category>
    <category>Standalone Applications</category>
  </classification>
  <references>
    <function tag="libURLVersion">libURLVersion Function</function>
    <function tag="buildNumber">buildNumber Function</function>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
  </security>
  <summary><glossary tag="return">Returns</glossary> the version of the LiveCode application.</summary>
  <examples>
    <example>revAppVersion()</example>
    <example>if revAppVersion() is not "1.0" then answer "Sorry, Charlie!"</example>
  </examples>
  <description>
    <p>Use the <b>revAppVersion</b> <control_st tag="function">function</control_st> if you need to check which version of the <glossary tag="development environment">development environment</glossary> is currently running.</p><p/><p><b>Value:</b></p><p>The <b>revAppVersion</b> <control_st tag="function">function</control_st> returns a <keyword tag="string">string</keyword> indicating the version of the <glossary tag="development environment">development environment</glossary>.</p><p/><p><b>Comments:</b></p><p>The <b>revAppVersion</b> <control_st tag="function">function</control_st> is different from the <function tag="version">version</function> <control_st tag="function">function</control_st>. The <b>revAppVersion</b> function returns the version of the <glossary tag="development environment">development environment</glossary>, while the <function tag="version">version</function> <control_st tag="function">function</control_st> returns the version of the underlying <glossary tag="engine">engine</glossary>. For example, the contents of the LiveCode menu bar, the <glossary tag="LiveCode custom library">LiveCode custom libraries</glossary>, and the <glossary tag="property inspector">property inspector</glossary> depend on the <b>revAppVersion</b>, but the features of the <glossary tag="LiveCode">LiveCode</glossary> language depend on the <glossary tag="engine">engine</glossary> <function tag="version">version</function>.</p><p/><p><code/><b>Note:</b><code/> In a standalone application the <glossary tag="Common library">Common library</glossary> is implemented as a hidden <command tag="group">group</command> and made available when the <command tag="group">group</command> receives its first <message tag="openBackground">openBackground</message> message. During the first part of the <glossary tag="application">application's</glossary> startup process, before this <keyword tag="message box">message</keyword> is sent, the <b>revAppVersion</b> <control_st tag="function">function</control_st> is not yet available. This may affect attempts to use this <control_st tag="function">function</control_st> in <message tag="startup">startup</message>, <message tag="preOpenStack">preOpenStack</message>, <message tag="openStack">openStack</message>, or <message tag="preOpenCard">preOpenCard</message> <glossary tag="handler">handlers</glossary> in the <glossary tag="main stack">main stack</glossary>. Once the <glossary tag="application">application</glossary> has finished starting up, the <command tag="start using">library</command> is available and the <b>revAppVersion</b> <control_st tag="function">function</control_st> can be used in any <glossary tag="handler">handler</glossary>.</p>
  </description>
</doc>