Discussion Locked

What is bookmark in VB?

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
What is bookmark in VB?

6 replies

by sl-campbell

In Vb there are two types but both basically mean the same:

1. RECORDSETS: A property of the recordset object, that holds a bin?r string which marks the current position of of the cursor in a recordset.
Basically, you can think of it as you would when using a bookmark to mark the page of a book that you are reading, and use it to return to that page easily.
There are bookmarks for every record in a recordset, so if you assign a variant or bookmark type variable to the recordset bookmark , and reposition the cursor to another record, you can return to the previous record easily by assigning the recordset bookmark property to the variable that holds the bookmark of the previous record.

2. DATAGRID/DBGRID: The SELECTED lines in a grid. The bookmark marks the row in a row buffer for a grid which enables you to loop through the rows a user has selected with-in the grid. This is good for making bulk changes, such as deletions, for the selected items.

by sl-campbell

I forgot to mention that with the data grid, and the selected lines, the bookmark property belongs to the bookmarks collection. Therefore you can use For/Each to move through the collection, or, selected lines.

This discussion is closed to new replies.