ComponentOne List 8.0 for ActiveX
Understanding Bookmarks

Both True DBList and the Microsoft Data Access Objects (DAO) library use bookmarks to identify records and navigate through the database. A bookmark is a variant that uniquely identifies a particular row in a database. As such, it is a generalization of the concept of row numbers.

Programmers who are accustomed to using row numbers to reference a record (as with dBASE databases) may need to adjust conceptually. In a relational database, the ordinal position of a record (that is, its row number) is irrelevant, since the total number of rows in the database or in a query result set is generally not available. After performing certain operations such as FindFirst (Recordset) or FindFirst (Recordset), the current record moves an unspecified number of rows forward and there is no efficient way to determine how many. To avoid time-consuming counting operations, most relational database systems have abandoned the practice of using row numbers and have adopted the bookmark approach.

Bookmarks are actually quite simple to use. The following are the basic rules to remember when using bookmarks in True DBList and in Visual Basic:

Note that to reliably compare two bookmarks in Visual Basic, you must first convert them into strings as shown in the preceding example. For more information, see Application Mode Bookmarks.

 

 


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

Product Support Forum  |  Documentation Feedback