Share via


CRowset::MoveLast

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CRowset::MoveLast.

Moves the cursor to the last row.

Syntax

  
HRESULT MoveLast( ) throw( );  
  

Return Value

A standard HRESULT.

Remarks

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.)

Requirements

Header: atldbcli.h

See Also

CRowset Class
CRowset::MoveNext
IRowset::RestartPosition
CRowset::MovePrev