Condividi tramite


CRowset::MoveLast

Moves the cursor to the last row.

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

Reference

CRowset Class

CRowset::MoveNext

IRowset::RestartPosition

CRowset::MovePrev

Other Resources

CRowset Members