How can i join two richviewedit?
for ecemple:
i have ritchviewedit1 with text and richviewedit2 with text
Is possible richviewedit3=ritchviewedit1.text+ritchviewedit2.text
[urgent]
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Code: Select all
var
AStream: TMemoryStream;
begin
try
AStream := TMemoryStream.Create;
RichViewEdit1.SaveRVFToStream(AStream, False);
AStream.Position := 0;
RichViewEdit1.LoadRVFFromStream(AStream);
AStream.Clear;
RichViewEdit2.SaveRVFToStream(AStream, False);
AStream.Position := 0;
RichViewEdit3.InsertRVFFromStream(AStream, RichViewEdit3.ItemCount);
RichViewEdit3.Format;
finally
AStream.Free;
end;
end;