CRecordset::MoveLast
Makes the first record in the last complete rowset the current record.
void MoveLast( );
Remarks
If you have not implemented bulk row fetching, your recordset has a rowset size of 1, so MoveLast simply moves to the last record in the recordset.
备注
This member function is not valid for forward-only recordsets.
备注
When you move through a recordset, you cannot skip deleted records. See the IsDeleted member function for details.
警告
Calling any of the Move functions throws an exception if the recordset has no records. To determine whether the recordset has any records, call IsBOF and IsEOF.
备注
If you call any of the Move functions while the current record is being updated or added, the updates are lost without warning.
For more information about recordset navigation, see the articles Recordset: Scrolling (ODBC) and Recordset: Bookmarks and Absolute Positions (ODBC). For more information about bulk row fetching, see the article Recordset: Fetching Records in Bulk (ODBC).
Exceptions
This method can throw exceptions of type CDBException* and CMemoryException*.
Example
See the example for IsBOF.
Requirements
Header: afxdb.h