4D v14.3GET HIGHLIGHT |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
GET HIGHLIGHT
GET HIGHLIGHT
The GET HIGHLIGHT command is used to determine what text is currently highlighted 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. Note: This command cannot be used with fields in the List form of a subform. Text can be highlighted by the user or by the HIGHLIGHT TEXT command. The parameter startSel returns the position of the first highlighted character. The parameter endSel returns the position of the last highlighted character plus one. If startSel and endSel are returned equal, the insertion point is positioned before the character specified by startSel. The user has not selected any text, and no characters are highlighted. If the object designated by the object parameter is not found in the form, the command returns -1 in startSel and -2 in endSel. The following example gets the highlighted selection from the field called [Products]Comments: See example for the command FILTER KEYSTROKE. Modification of highlighted text style: GET HIGHLIGHT(*;"myText";$startsel,$endsel) |
PROPERTIES
Product: 4D
HISTORY
Created: < 4D v6 SEE ALSO
FILTER KEYSTROKE ARTICLE USAGE
4D Language Reference ( 4D v14 R2) Inherited from : GET HIGHLIGHT ( 4D v12.4) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||