CompareBookmarks - method of the AdoRecordset object
Description:
This method compares the two bookmarks.
The method returns the CompareEnum value that specifies the bookmark's relative row positions.
Syntax:
Long CompareBookmarks(Object mark1, Object mark2)
Parameters:
mark1 | (Object) The bookmark of the first row. |
mark2 | (Object) The bookmark of the second row. |
---|
Return value:
0 - adCompareLessThan The first bookmark is before the second.
1 - adCompareEqual The bookmarks are equal.
2 - adCompareGreaterThan The first bookmark is after the second.
3 - adCompareNotEqual The bookmarks are not equal.
3 - adCompareNotComparable The bookmarks cannot be compared.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var nCompare = oRs.CompareBookmarks(mark1, mark2);
Dim nCompare
nCompare = oRs.CompareBookmarks(mark1, mark2)