WP Bookmark range
WP Bookmark range ( wpDoc ; bkName ) : Object
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 |
Description
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:
var $wpRange : Object
$wpRange:=WP Bookmark range(WParea;"MyBookmark")
WP SELECT(WParea;$wpRange)
See also
WP DELETE BOOKMARK
WP GET BOOKMARKS
WP NEW BOOKMARK
WP Text range