DbMoveLast

ODBC function.

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

Syntax

DbMoveLast()
or
Ret=DbMoveLast()

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.