CeODAX.MoveLast Method

PocketBrowser 3.x API

The MoveLast Method of the ODAX ActiveX Object moves the row pointer to the last record of the result set.

MoveLast (Method of the ODAX ActiveX Object) Syntax
var result = object.movelast();

axReturns Toggle 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 Toggle Examples

The following javascript moves the row pointer to the last record of the resultset

<script>
var ax = new ActiveXObject("CeODAX.ODAX");

var count = ax.Select('SELECT * FROM \'\\application\\test.xml\';', ',', false);
var result = ax.movelast();
</script>
Copy example to clipboard Copy example to clipboard

Remarks Toggle Remarks

General
There must a valid result set in order to successfully execute this command, otherwise the operation will result in an error.


Info Toggle Additional Information

Supported Platforms Windows Mobile, Windows CE
Persistence Runs immediately.
Min. Requirements None.