This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
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 Bookmark range
WP DELETE BOOKMARK
WP NEW BOOKMARK

 
PROPERTIES 

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

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v16

 
ARTICLE USAGE

4D Write Pro Reference ( 4D v20 R7)