<doc>
  <legacy_id>3072</legacy_id>
  <name>revDatabaseTableNames</name>
  <type>function</type>
  <syntax>
    <example>revDatabaseTableNames(databaseID)</example>
  </syntax>
  <library>Database Library</library>
  <objects>
  </objects>
  <synonyms>
    <synonym>revdb_tablenames</synonym>
  </synonyms>
  <classification>
  </classification>
  <references>
    <command tag="revExecuteSQL">revExecuteSQL Command</command>
    <function tag="revOpenDatabase">revOpenDatabase Function</function>
  </references>
  <history>
    <introduced version="1.1.1">Added.</introduced>
    <changed version="2.0"></changed>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
    <disk access="???"/>
    <network/>
  </security>
  <summary>Returns a list of the table names in the current database.</summary>
  <examples>
    <example>if tTableName is among the lines of revDatabaseTableNames(sgDatabaseId) then</p><p>  insertData tTableName, tData</p><p>end if</example>
  </examples>
  <description>
    <p><b>Parameters:</b></p><p>The <i>databaseID</i> is the number returned by the <function tag="revOpenDatabase">revOpenDatabase function</function> when the database was opened.</p><p/><p><b>Value:</b></p><p>The <b>revDatabaseTableNames</b> function returns a list (one per line) of table names. If an error was encountered, the result will be set to a string beginning with revdberr.</p><p/><p><b>Comments:</b></p><p>You can use the <b>revDatabaseTableNames</b> function to verify that a user-specified table name is correct or to display a list of tables for the user to choose between.</p><p/><p><b>Important!</b> The <b>revDatabaseTableNames</b> function is part of the Database library. To ensure that the function works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions section of the General screen of the Standalone Application Settings 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><p/><p><b>Changes:</b></p><p>The <b>revDatabaseTableNames</b> synonym was added in version 2.0.</p>
  </description>
</doc>