4D Chart v13

CT GET HIGHLIGHT

Home

 
4D Chart v13
CT GET HIGHLIGHT

CT GET HIGHLIGHT 


 

CT GET HIGHLIGHT ( area ; first ; last ) 
Parameter Type   Description
area  Longint in 4D Chart area
first  Integer in Receives position of first character minus 1
last  Integer in 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.

Example  

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

 
PROPERTIES 

Product: 4D Chart
Theme: CT Objects
Number: 14599

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Chart 1

 
SEE ALSO 

CT SET HIGHLIGHT