4D v16

WP Get bookmark range

Home

 
4D v16
WP Get bookmark range

WP Get bookmark range 


 

WP Get 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

The WP Get 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 Get bookmark range(WParea;"MyBookmark")
 WP SELECT(WParea;$wpRange)



See also 

WP CREATE BOOKMARK
WP DELETE BOOKMARK
WP GET BOOKMARKS

 
PROPERTIES 

Product: 4D
Theme: 4D Write Pro Language

This command can be run in preemptive processes

 
HISTORY 

New
Created: 4D v16

 
ARTICLE USAGE

4D Write Pro Reference ( 4D v16)