4D v17WP GET BOOKMARKS | 
            |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
                 
                
  | 
                
			
                    
                         
    4D v17
 
WP GET BOOKMARKS 
                                
                                
        
 | 
                ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| WP GET BOOKMARKS ( wpDoc ; arrBKNames ) | ||||||||
| Parameter | Type | Description | ||||||
| wpDoc | Object | 
             
         | 
        4D Write Pro document | |||||
| arrBKNames | Text array | 
             
         | 
        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.
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.")
	Product:  4D
	Theme:  4D Write Pro Language
	Number:  
        1417
        
        
        
	
	Created:  4D v16
	
	
	
	4D Write Pro Reference ( 4D v17)
	
	
	
	
	
	
	
	
Add a comment