<doc>
  <legacy_id>1600</legacy_id>
  <name>revMoveToPreviousRecord</name>
  <type>command</type>
  <syntax>
    <example>revMoveToPreviousRecord <i>recordSetID</i></example>
  </syntax>
  <library>Database library</library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Database Operations</category>
    <category>Standalone Applications</category>
  </classification>
  <references>
    <command tag="revMoveToNextRecord">revMoveToNextRecord Command</command>
    <function tag="revQueryIsAtStart">revQueryIsAtStart Function</function>
  </references>
  <history>
    <introduced version="2.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
    <disk access="???"/>
    <network/>
  </security>
  <summary>Moves to the previous <glossary tag="record">record</glossary> in a <glossary tag="record set (database cursor)">record set (database cursor)</glossary>.</summary>
  <examples>
    <example>revMoveToPreviousRecord 31</example>
    <example>revMoveToPreviousRecord testResults</example>
  </examples>
  <description>
    <p>Use the <b>revMoveToPreviousRecord</b> <glossary tag="command">command</glossary> to move around within the selected set of <glossary tag="record">records</glossary>.</p><p/><p><b>Parameters:</b></p><p>The <i>recordSetID</i> is the number <glossary tag="return">returned</glossary> by the <function tag="revQueryDatabase">revQueryDatabase function</function> when the <glossary tag="record set (database cursor)">record set</glossary> was created.</p><p/><p><b>Comments:</b></p><p>If the command could not move to the previous record because it's already at the first record or there are no records in the record set, the <b>result</b> <control_st tag="function">function</control_st> returns an error message that begins with the <keyword tag="string">string</keyword> "revdberr".</p><p/><p><b>Note:</b> Not all <glossary tag="database">databases</glossary> support the <b>revMoveToPreviousRecord</b> <glossary tag="command">command</glossary>. Currently the <b>revMoveToPreviousRecord</b> command is not supported by Oracle databases and certain ODBC data sources.</p><p/><p><img src="202653"/> <b>Important!</b> The <b>revMoveToPreviousRecord</b> <glossary tag="command">command</glossary> is part of the <glossary tag="Database library">Database library</glossary>. To ensure that the <glossary tag="command">command</glossary> 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>