[Gambas-user] Insert the specified text at the cursor position.

Rob sourceforge-raindog2 at ...94...
Tue Aug 16 06:14:30 CEST 2005


On Monday 15 August 2005 23:40, Steve Starr wrote:
> I am trying to insert text where the cursor is positioned
> but the text i add is added to the end of the last word in
> textarea. and never at the cursor possition.
> Any ideas on how i fix this?

http://www.binara.com/gambas-wiki/static/Gambas/GbQtTextAreaPPos.html

textarea1.Text = left(textarea1.text, textarea1.pos) &
    "Hello" & mid(textarea1.text, textarea1.pos + 1)

Rob







More information about the User mailing list