Inserting Text at the cursor

ironfistchamp

Active member
Joined
Dec 9, 2005
Messages
29
Programming Experience
Beginner
Ok I want to create some kind of function to insert text where the cursor is. Not the mouse one but the blinking one in the rtb.

I tried rtb.text.insert but that wants an index number but I don't know what thats going to be because they could insert this text anywhere.

Any help?

Thanks

Ironfistchamp
 
rtb.SelectedText = "Text to be insterted"

if nothing is highlighted this simply puts the text in where the cursor is, if something is highlighted then that highlighted text is replaced with the new text
 
Back
Top