True DataControl 8.0 Reference > True DataControl Control > TData Control Methods > BookmarkToArrayIndex Method |
BookmarkToArrayIndex Method
Converts bookmark to array index in memory array mode.
TData.BookmarkToArrayIndex Bookmark
Method applies to TData control and TDataLite control.
Arguments: Bookmark is a variant identifying a row in the True DataControl Recordset in memory array mode.
Return Value: Long integer index of the row in the XArrayDB object , between LowerBound and UpperBound.
This method is relevant only for DataMode = 1 - MemoryArray. Given a row bookmark, it returns corresponding index in the XArrayDB object. If the bookmark does not identify an existing row, the method returns LowerBound - 1.
Bookmarks in memory array mode are Long numbers, but the bookmark of a row can be different from its index if some rows were deleted from the XArrayDB object.
The ArrayIndexToBookmark method performs inverse conversion.
See Also