[Gambas-user] last line of editor

Benoit Minisini gambas at ...1...
Thu Dec 18 02:02:55 CET 2008


On mardi 16 décembre 2008, Demosthenes Koptsis wrote:
> Hi to all,
>
> i have a text area and i want when i feed text to it to go to the last
> line of it, so i wrote the next code that works fine
>
> PUBLIC SUB txaSQL_Change()
>
>   txaSQL.Pos = Len(txaSQL.Text)
>
> END
>
> how can i have the same result with an editor control?

TheEditor.Goto(TheEditor.Lines.Count, 0)

-- 
Benoit Minisini




More information about the User mailing list