Skip to main content
Version: 20 R7 BETA

WP GET BOOKMARKS

WP GET BOOKMARKS ( wpDoc ; arrBKNames )

ParameterTypeDescription
wpDocObject4D Write Pro document
arrBKNamesText array🡘Array of bookmark names

Description

The WP GET BOOKMARKS command returns an array containing the names of all bookmarks defined in wpDoc.

After the command is executed, the arrBKNames is filled with all the bookmark names in the document. In the array, names are sorted by bookmark position inside the document. If several bookmarks begin at the same position, they are sorted in alphabetical order.

Example

You want to know the number of bookmarks defined in your document:

 ARRAY TEXT($_bookmarks;0)
 WP GET BOOKMARKS(WParea;$_bookmarks)
 ALERT("The document contains "+Size of array($_bookmarks)+" bookmarks.")

See also

WP Bookmark range
WP DELETE BOOKMARK
WP NEW BOOKMARK