4D v16.3HIGHLIGHT TEXT |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
HIGHLIGHT TEXT
HIGHLIGHT TEXT
The HIGHLIGHT TEXT command highlights a section of the text in object. If you pass the optional * parameter, you indicate that the object parameter is an object name (string). If you do not pass the * parameter, you indicate that the object parameter is a field or variable. In this case, you pass the field or variable reference (form fields or variables only) instead of a string. If object is not the object currently being edited, it gets the focus. Note: This command cannot be used with fields in a subform. If lastSel is greater than the number of characters in object, then all characters between startSel and the end of the text are highlighted. The following example selects all the characters of the enterable field [Products]Comments:
HIGHLIGHT TEXT([Products]Comments;1;Length([Products]Comments)+1) The following example moves the insertion point to the beginning of the enterable field [Products]Comments: HIGHLIGHT TEXT([Products]Comments;1;1) The following example moves the insertion point to the end of the enterable field [Products]Comments: $vLen:=Length([Products]Comments)+1 See example for the FILTER KEYSTROKE command.
See also
|
PROPERTIES
Product: 4D
HISTORY
Created: < 4D v6 ARTICLE USAGE
4D Language Reference ( 4D v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||