HRESULT IsSameRow(
const CBookmark& bmk1,
const CBookmark& bmk2);
Parameters
bmk1
Bookmark of a row.
bmk2
Bookmark of a row.
Return Code
S_OK
Returned if the bookmarks identify the same row.
S_FALSE
Returned if they do not.
E_FAIL
Returned if the object is not attached, or any return values that may be generated by CRowset::GetRows and CRowset::IsSameRow(HROW, HROW). This method does not wrap any particular rowset interface method, but is provided as a convenience to the programmer.
Comments
Uses CRowset::CompareBookmarks to determine whether the two bookmarks identify the same row in the data source. If CRowset::CompareBookmarks fails, then the HROWs of the rows identified by the bookmarks are fetched. If the fetch was successful, then CRowset::IsSameRow(HROW, HROW) is used to compare the two rows.