Re: Adding string to Memo
- From: "Henry Bartlett" <hambar@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 30 Oct 2005 10:46:11 +1100
Brian" <not@xxxxxxxxx> wrote in message
news:VRM8f.36915$S_1.27676@xxxxxxxxxxxxxxxxxxxxxxx
> if SelStart gives me the position, how do I then say
> add the 'string' at the position?
Try something like this
S := MyMemo.Text;
MyMemo.SelLength := 0;
Insert (StringToBeInserted, S, MyMemo.SelStart);
MyMemo.Text := S;
HTH
--
Henry Bartlett
Delphi Links Page:
( http://www.hotkey.net.au/~hambar/habit/delflink.htm )
"Brian" <not@xxxxxxxxx> wrote in message
news:VRM8f.36915$S_1.27676@xxxxxxxxxxxxxxxxxxxxxxx
>
> > 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
>
> Brian
>
>
.
- References:
- Adding string to Memo
- From: Brian
- Re: Adding string to Memo
- From: Heinrich Wolf
- Re: Adding string to Memo
- From: Brian
- Adding string to Memo
- Prev by Date: Re: Adding string to Memo
- Next by Date: Re: Adding string to Memo
- Previous by thread: Re: Adding string to Memo
- Next by thread: Re: Adding string to Memo
- Index(es):
Relevant Pages
|