1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| procedure TJournaux.SpeedButton2Click(Sender: TObject);
var S1,S2,S3 : string;
po,pi,pu : integer;
begin
fin := length(#13#10);
S1 := Copy(RichEdit_Copy.Lines.Text,1,29);
RichEdit_Journaux.Lines.Add(S1);
S2 := Copy(RichEdit_Copy.Lines.Text,31,450);
po := pos(#32, S2);
while po > 0 do
begin
delete(S2, po, 1);
po := pos(#32, S2);
end;
pi := pos(#10, S2);
while pi > 0 do
begin
delete(S2, pi, 1);
pi := pos(#10, S2);
end;
pu := pos(#13, S2);
while pu > 0 do
begin
delete(S2, pu, 1);
pu := pos(#13, S2);
end;
RichEdit_Journaux.Lines.Add(S2);
S3 := Copy(RichEdit_Copy.Lines.Text,451,516);
RichEdit_Journaux.Lines.Add(S3); |
Partager