WP GET BOOKMARKS
WP GET BOOKMARKS ( wpDoc ; arrBKNames )
Parameter | Type | Description | |
---|---|---|---|
wpDoc | Object | → | 4D Write Pro document |
arrBKNames | Text 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.")