DbMovePrev

ODBC function.

The DbMovePrev function moves the read pointer to the previous record of the dataset in use. Not available in WinTask Lite.

Syntax

DbMovePrev()
or
Ret=DbMovePrev()

Return value

Ret, numeric return code. If the move has been performed successfully, the function returns 0, otherwise use this return code for error management.

Example

 

DbConnect("DSN=gpao;PWD=SILOG") ' connection to ODBC database called gpao

DbSelect("SELECT * FROM Business",DYNASET) ' select all records in table Business.

DbMoveLast() ' move read pointer to the last record.

DbMovePrev() ' move read pointer to the next to last record.