The MovePrev Method of the ODAX ActiveX Object moves the row pointer to the previous record in the result set.
MovePrev (Method of the ODAX ActiveX Object) Syntax var result = object.moveprev();
Return Values
Name Description Result Returns 0 if no error occurs or an error code if an error occurs. (Please Refer to GetLastErrorString for More Detail)
Examples
The following javascript moves the row pointer to the previous record in the resultset:
<script> var ax = new ActiveXObject("CeODAX.ODAX"); var count = ax.Select('SELECT * FROM \'\\application\\test.xml\';', ',', false); var result = ax.moveprev(); </script>
Copy example to clipboard
Remarks
GeneralThere must a valid result set in order to successfully execute this command, otherwise the operation will result in an error.
Additional Information
Supported Platforms Windows Mobile, Windows CE Persistence Runs immediately. Min. Requirements None.