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

Benoit Minisini gambas at ...1...
Tue Aug 16 17:10:55 CEST 2005


On Tuesday 16 August 2005 06:14, Rob wrote:
> 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
>

I think something like TextArea1.Selection.Text = "..." should work too. Id 
on't remember, didn't I do an "Insert" method ?

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list