Page 1 of 1
[urgent]
Posted: Mon Aug 28, 2006 9:48 am
by filipe
How can i join two richviewedit?
for ecemple:
i have ritchviewedit1 with text and richviewedit2 with text
Is possible richviewedit3=ritchviewedit1.text+ritchviewedit2.text
Posted: Mon Aug 28, 2006 3:50 pm
by mamouri
var
AStream: TMemoryStream;
begin
try
AStream := TMemoryStream.Create;
SourceRV.SaveRVFToStream(AStream, False);
SourceRV.Position := 0;
DestRV.InsertRVFFromStream(AStream);
DestRV.Format;
finally
AStream.Free;
end;
Posted: Mon Aug 28, 2006 5:34 pm
by Sergey Tkachenko
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;