4D Chart v13CT GET HIGHLIGHT |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Chart v13
CT GET HIGHLIGHT
|
CT GET HIGHLIGHT ( area ; first ; last ) | ||||||||
Parameter | Type | Description | ||||||
area | Longint |
![]() |
4D Chart area | |||||
first | Integer |
![]() |
Receives position of first character minus 1 | |||||
last | Integer |
![]() |
Receives position of last character | |||||
The CT GET HIGHLIGHT command returns into the first and last variables the character positions of the highlighted text in area.
first is one less than the first character position highlighted and last is the last character highlighted. If first equals last, no characters are highlighted and the insertion point is between first and first +1.
Since only one object can have highlighted text at a time, the scope parameter is not needed. If there is no highlighted text in area, CT GET HIGHLIGHT returns -32000 for first and last.
This example returns the position of the highlighted text, and if no text is selected, it alerts the user.
CT GET HIGHLIGHT(Area;$First;$Last)
If(CT Error=46)
ALERT("There is no text highlighted.")
End if
Product: 4D Chart
Theme: CT Objects
Number:
14599
Created: 4D Chart 1