TMemoryStream and RichEdit Controls
Quote
Bruce Roberts wrote:
> "John Parsons" <john.parson...@nnntttlllworld.com> wrote in message
> news:3A808B5C.525A0753@ntlworld.com...
> > Hi
> > Can anyone help? I'm trying to transfer RTF data from one
> > Richedit control to another
> > using the following code
<snip>
Quote
> > begin
> > SwapStream := TMemoryStream.Create;
> try // its a good habit
> <snip>
> > RichEdit1.Lines.SaveToStream(SwapStream);
> SwapStream.Position := 0;
> > Richedit2.Lines.LoadFromStream(SwapStream);
> finally
> > SwapStream.Free
Great! Thanks
John (from-the-dragged-up-but-always-willing-to-learn school of
programming) Parsons
To E-Mail - Stop stuttering!!