4D v16WP Get bookmark range |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16
WP Get bookmark range
|
WP Get bookmark range ( wpDoc ; bkName ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
wpDoc | Object |
![]() |
4D Write Pro document | |||||
bkName | Text |
![]() |
Name of bookmark whose range you want to get | |||||
Function result | Object |
![]() |
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.
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)
Product: 4D
Theme: 4D Write Pro Language
Created: 4D v16
4D Write Pro Reference ( 4D v16)