Home / comp / gb.qt / textarea / pos 
TextArea.Pos (gb.qt)
Syntax
PROPERTY Pos AS Integer
Returns or sets the cursor position, in characters from the beginning of the text.

As the text is stored in UTF-8, you must use the String class to convert this position to the byte index in the string.