Re: Adding string to Memo



Brian wrote:

Memo.SelStart gives you the position,
where you should insert your text into Memo.Text .
If Memo.SelLenght is not 0,
you might want to replace this amount of chars
by your text.

Regards
Heiner



Thanks for such a quick response, little confused if SelStart gives me the position, how do I then say add the 'string' at the position?

Brian


i could be wrong here but i thinkn selectstart is the
API level indexer.
  if you use the "Text" property, it should give you
the raw string like it is seen in the control.
 then using Insert(Memo1.Text, theStringToPutin,Memo1.SelectStart);
memo1.Refresh and repaint may have to be used..



--
Real Programmers Do things like this.
http://webpages.charter.net/jamie_5

.