[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'DBGrids' (#lcl)

TBookmarkedRecordEnumerator.MoveNext

Moves to the next bookmark in the list.

Declaration

Source position: dbgrids.pas line 152

public function TBookmarkedRecordEnumerator.MoveNext: Boolean;

Function result

True when the action has been performed successfully.

Description

MoveNext is a Boolean function used to move the enumerator to the next item in the bookmark list. Move next increments the value in BookmarkIndex, and examines the Options property to see if any actions are required, such as: setting the value of the Current Bookmark before navigation, or disabling controls attached to the dataset.

MoveNext updates the current bookmark and checks the dataset to see if the bookmark is still valid. The return value is False if the record for the bookmark no longer exists in the dataset and Options indicates the enumerator should halt for an invalid bookmark. False is also returned when the value in BookmarkIndex exceeds the number of items in the BookmarkList.

The return value is True when the action has been performed successfully.


Version 4.0 Generated 2025-05-03 Home