Get cursor position in textbox?

tsteward

Well-Known Member
Licensed User
Longtime User
Turns out its quit easy
B4X:
  i = TextEdit.SelectionStart
 TextEdit.Text  = StrInsert(TextEdit.Text,i,"[]")
 TextEdit.SelectionStart = i + 1
 TextEdit.ScrollToCaret
 
Top