CaretPos Property
Set / Gets the caret position of a textbox control

 

 

  

Syntax:  

 

      CaretPos <nValue> (Control Definition)

 

      <ParentWindowName>.<ControlName>.CaretPos := nCaretPosition

 

      <ParentWindowName>.<ControlName>.CaretPos  --> nCaretPosition

 

 

Note: if you set CaretPos to -1 moves the caret to the end of text and scrolls the text.