You are not logged in.
Pages: 1
Hi, in the new version after the TTextWriter.Text is executed and then new data is added, the old data will be broken. Is it normal?
Writer := TTextWriter.CreateOwnedStream();
Writer.AddString('One-');
Writer.AddString('Two-');
Writer.AddString('Free-');
Writer.FlushFinal;
t1:= Writer.Text; // One-Two-Free-
Writer.AddString('Ones more');
Writer.FlushFinal;
t2 := Writer.Text; // #0#0#0#0#0#0#0#0#0#0#0#0#0'Ones more'
Offline
Pages: 1