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

Home

 
4D v20 R7
WP Bookmark range

WP Bookmark range 


 

WP Bookmark range ( wpDoc ; bkName ) -> Function result 
Parameter Type   Description
wpDoc  Object in 4D Write Pro document
bkName  Text in Name of bookmark whose range you want to get
Function result  Object in Range of bookmark

WP Bookmark range was named WP Get bookmark range in previous versions of 4D Write Pro. It has been renamed for clarity.   

The WP Bookmark range command returns a text range object (rangeObj) containing the range for the bookmark with the specified bkName in wpDoc.

If the bkName bookmark does not exist in wpDoc, an empty rangeObj object is returned.

Example  

You want to show the range of the "MyBookmark" bookmark in your document:

 C_OBJECT($wpRange)
 $wpRange:=WP Bookmark range(WParea;"MyBookmark")
 WP SELECT(WParea;$wpRange)



See also 

WP DELETE BOOKMARK
WP GET BOOKMARKS
WP NEW BOOKMARK
WP Text range

 
PROPERTIES 

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

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v16
Renamed: 4D v17 R5 (WP Bookmark range)

 
ARTICLE USAGE

4D Write Pro Reference ( 4D v20 R7)