4D v16WP SELECT |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16
WP SELECT
|
WP SELECT ( {* ;} wpArea {; rangeObj}{; startRange ; endRange} ) | ||||||||
Parameter | Type | Description | ||||||
* | Operator |
![]() |
If specified, wpArea is a form object name (string). If omitted, wpArea is an object field or variable. | |||||
wpArea | String, Object |
![]() |
Form object name (if * is specified) or 4D Write Pro object variable or field (if * is omitted) | |||||
rangeObj | Object |
![]() |
Range object to apply to create a selection | |||||
startRange | Longint |
![]() |
Starting offset of text range | |||||
endRange | Longint |
![]() |
Ending offset of text range | |||||
The WP SELECT command creates a new text selection in the wpArea 4D Write Pro area, based upon the rangeObj or a new range defined by startRange and endRange.
If you pass the optional * parameter, you indicate that wpArea is a form object name (string). If you do not pass this parameter, you indicate that wpArea is a 4D Write Pro object variable or field. If no valid 4D Write Pro area is passed in the wpArea parameter, the command does nothing.
To define the selection range, you can either pass an existing range object in rangeObj, or pass a pair of startRange / endRange boundaries:
The following code:
$range2:=WP Get range([SAMPLE]WP;wk start text;12)
WP SELECT(*;"WParea";$range2)
... will have the same result as:
WP SELECT(*;"WParea";wk start text;12)
Product: 4D
Theme: 4D Write Pro Language
Created: 4D v15 R4
4D Write Pro Reference ( 4D v16)