procedure TForm4.Button1Click(Sender: TObject);
var
c:array of array of char;
s:char;
i,j,p,x: integer;
begin
p:=RichEdit1.Lines.Count;
setlength(c,0,0);
setlength(c,p,100);
for i := 0 to RichEdit1.Lines.Count - 1 do
for j := 1 to Length(richedit1.Lines[i]) do
c[i][j] := RichEdit1.Lines[i][j];
for i := 0 to RichEdit2.Lines.Count -1 do
for j := 1 to Length(RichEdit2.Lines[i]) do
begin
s:= c[i, j];
RichEdit2.Lines[i][j]:=s;
end;
end;
end.
в данный момент использую этот код, он выводит ошибку:
[dcc32 Error] Unit4.pas(46): E2064 Left side cannot be assigned to