Skip to content

Latest commit

 

History

History
71 lines (62 loc) · 1.74 KB

File metadata and controls

71 lines (62 loc) · 1.74 KB
title CRowset::MoveLast | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
ATL::CRowset<TAccessor>::MoveLast
CRowset<TAccessor>::MoveLast
ATL.CRowset.MoveLast
ATL::CRowset::MoveLast
CRowset<TAccessor>.MoveLast
MoveLast
CRowset::MoveLast
ATL.CRowset<TAccessor>.MoveLast
CRowset.MoveLast
dev_langs
C++
helpviewer_keywords
MoveLast method
ms.assetid 81063578-ae9d-467b-8c88-81d8fc66e020
caps.latest.revision 9
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

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