Skip to main content
Version: Next

WP Bookmark range

WP Bookmark range ( wpDoc : Object ; bkName : Text ) : Object

ParameterTypeDescription
wpDocObject→4D Write Pro document
bkNameText→Name of bookmark whose range you want to get
Function resultObject←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