Skip to main content
Version: 20 R7 BETA

WP Bookmark range

WP Bookmark range ( wpDoc ; bkName ) -> Function result

ParameterTypeDescription
wpDocObject4D Write Pro document
bkNameTextName of bookmark whose range you want to get
Function resultObjectRange of bookmark

Compatibility

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

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