A new feature in 4D Write Pro: “Bookmarks”!

Automatically translated from English

Bookmarks can now be created inside 4D Write Pro documents. But what are bookmarks exactly ? A bookmark is a named reference matching a text selection of a 4D Write Pro document.

Several bookmarks can be present inside a single document. Once bookmarks have been created, they can be retrieved as a list of names, then using one of them allows retrieve the range of the corresponding text.

Of course, bookmarks can also be deleted. And deleting a bookmark does not affect the document in any way.

To manage these bookmarks, 4 new commands have been created in order to handle them by programming:

  • WP Get bookmark range


The 4D Write Pro widget has also been updated to manage them without any programming.


This panel allows to

  • create bookmarks based on text selection
  • delete one bookmark selected in the list
  • update an existing bookmark (according to a new text selection)

An example illustrating the use of these new commands is available: Example Database.

To get more details about the bookmark concept, please take a look at the Accessing document contents by programming section in the 4D Write Pro v16 reference manual.


Roland Lannuzel

• Product Owner & 4D Expert •

After studying electronics, Roland went into industrial IT as a developer and consultant, building solutions for customers with a variety of databases and technologies. In the late 80’s he fell in love with 4D and has used it in writing business applications that include accounting, billing and email systems.

Eventually joining the company in 1997, Roland’s valuable contributions include designing specifications, testing tools, demos as well as training and speaking to the 4D community at many conferences. He continues to actively shape the future of 4D by defining new features and database development tools.