RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBookmarkList.Clear Method

Deletes all bookmarks from the list.

Pascal
procedure Clear;
C++
__fastcall Clear();

Call Clear to empty the Items array and set the Count property to 0 when all rows of the associated DBGrid are deselected. Calling Clear invalidates the associated DBGrid so that the selected rows that were referenced by the bookmarks in the bookmark list can be repainted.

Note: Clear removes the bookmarks from the bookmark list to reflect the fact that the corresponding rows are not selected. To delete the rows from the dataset rather than just deselecting them, call the Delete method instead.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!