ComponentOne True DataControl 8.0
Bookmarks and Row Numbers

Having an array, one would naturally want to access its rows in the simplest way, by row number (index in array). On the other hand, the rows of an ADO recordset, including the True DataControl Recordset, should be accessed using bookmarks. One would expect the two methods of identifying rows to be closely related.

Indeed, True DataControl bookmarks in memory array mode are long numbers, just like array indexes. They are closely related but not identical, because bookmarks must identify a row uniquely, whereas the row index can change if some preceding rows are deleted from the array.

Correspondence between row numbers and bookmarks can be easily established using two special True DataControl methods:

ArrayIndexToBookmark

Returns the bookmark for a given row index.

BookmarkToArrayIndex

Returns the row index for a given bookmark.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback