ComponentOne True DataControl 8.0
Handling the GetBookmarkName Event

The programmer can make bookmark names appear automatically, so the user won't have to enter a name for each bookmark manually.

This can be done in the GetBookmarkName event procedure. The GetBookmarkName event is fired before opening the Bookmarks dialog. Setting its BookmarkName argument to a string makes that string appear as the default bookmark name for the current record. In most cases, you will find it useful to set the argument to the value of a recordset field that allows the user to identify the record. For example:

Example Title
Copy Code
Private Sub TData1_GetBookmarkName(BookmarkName As String)

   BookmarkName = TData1("LastName")

End Sub

 

 


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

Product Support Forum  |  Documentation Feedback