Поделиться через


CRowset::MoveLast

Moves the cursor to the last row.

HRESULT MoveLast( ) throw( );

Возвращаемое значение

A standard HRESULT.

Заметки

Calls IRowset::RestartPosition to reposition the next-fetch location to the last position and retrieves the last row.

This method requires that you set DBPROP_CANSCROLLBACKWARDS to VARIANT_TRUE before calling Open on the table or command containing the rowset. (For better performance, you might also set DBPROP_QUICKRESTART to VARIANT_TRUE.)

Требования

Header: atldbcli.h

См. также

Основные понятия

CRowset Class

CRowset Members

CRowset::MoveNext

IRowset::RestartPosition

CRowset::MovePrev