<doc>
  <legacy_id>2415</legacy_id>
  <name>revdb_disconnect</name>
  <type>function</type>
  <syntax>
    <example>revdb_disconnect(<i>databaseID</i>)</example>
  </syntax>
  <library>Database library</library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Database Operations</category>
    <category>Standalone Applications</category>
  </classification>
  <references>
    <command tag="revCloseCursor">revCloseCursor Command</command>
  </references>
  <history>
    <introduced version="1.1">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
    <disk access="???"/>
    <network/>
  </security>
  <summary><glossary tag="execute">Executes</glossary> the <command tag="revCloseDatabase">revCloseDatabase</command> <glossary tag="command">command</glossary>.</summary>
  <examples>
    <example>get revdb_disconnect(savedBudgetDB)</example>
  </examples>
  <description>
    <p>Use the <b>revdb_disconnect</b> <control_st tag="function">function</control_st> to cleanly log off from a <glossary tag="database">database</glossary>.</p><p/><p><b>Parameters:</b></p><p>The <i>databaseID</i> is the number <glossary tag="return">returned</glossary> by the <function tag="revOpenDatabase">revOpenDatabase</function> <control_st tag="function">function</control_st> when the <glossary tag="database">database</glossary> was opened.</p><p/><p><b>Value:</b></p><p>The <b>revdb_disconnect</b> <control_st tag="function">function</control_st> returns empty if the closure was successful.</p><p/><p><b>Comments:</b></p><p>Evaluating the <b>revdb_disconnect</b> <control_st tag="function">function</control_st> has the same effect as <glossary tag="execute">executing</glossary> the <command tag="revCloseDatabase">revCloseDatabase</command> <glossary tag="command">command</glossary>. The only difference is that one is a <glossary tag="function call">function call</glossary> and the other is a <glossary tag="command">command</glossary>.</p><p/><p><code/><img src="202653"/> <b>Important!</b><code/> The <b>revdb_disconnect</b> <control_st tag="function">function</control_st> is part of the <glossary tag="Database library">Database library</glossary>. To ensure that the <control_st tag="function">function</control_st> works in a <glossary tag="standalone application">standalone application</glossary>, you must include this <glossary tag="LiveCode custom library">custom library</glossary> when you create your <glossary tag="standalone application">standalone</glossary>. In the Inclusions section of the General screen of the <glossary tag="Standalone Application Settings">Standalone Application Settings</glossary> window, make sure the "Database Support" checkbox is checked and the database drivers you are using are selected in the list of database drivers.</p>
  </description>
</doc>