ComponentOne True DataControl 8.0
BookmarkToArrayIndex Method

 

BookmarkToArrayIndex Method

Converts bookmark to array index in memory array mode.

Syntax

TData.BookmarkToArrayIndex Bookmark

Remarks

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

TData Control

 

 


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

Product Support Forum  |  Documentation Feedback