4D v17WP SELECT |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v17
WP SELECT
|
WP SELECT ( {* ;} wpArea {; targetObj} | {; 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) | |||||
targetObj | Object |
![]() |
Range or element reference | |||||
startRange | Longint |
![]() |
Starting offset of text range | |||||
endRange | Longint |
![]() |
Ending offset of text range | |||||
The WP SELECT command creates a new selection in the 4D Write Pro wpArea area, based upon the targetObj 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.
Note: This command can only be used if the wpArea is associated with a form object (i.e. it is displayed in the form).
To define the selection, you can either pass an existing object in targetObj, or pass a pair of startRange / endRange boundaries:
The following code:
$range:=WP Create range([SAMPLE]WP;wk start text;12)
WP SELECT(*;"WParea";$range)
... will have the same result as:
WP SELECT(*;"WParea";wk start text;12)
Product: 4D
Theme: 4D Write Pro Language
Number:
1348
Created: 4D v15 R4
Modified: 4D v16 R5
Modified: 4D v16 R6
4D Write Pro Reference ( 4D v17)