4D v16

WP GET BOOKMARKS

Home

 
4D v16
WP GET BOOKMARKS

WP GET BOOKMARKS 


 

WP GET BOOKMARKS ( wpDoc ; arrBKNames ) 
Parameter Type   Description
wpDoc  Object in 4D Write Pro document
arrBKNames  Text array in Array of bookmark names

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 CREATE BOOKMARK
WP DELETE BOOKMARK
WP Get bookmark range

 
PROPERTIES 

Product: 4D
Theme: 4D Write Pro Language
Number: 705239

This command can be run in preemptive processes

 
HISTORY 

New
Created: 4D v16

 
ARTICLE USAGE

4D Write Pro Reference ( 4D v16)