D
danliyou
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender: TObject);
var
s,s1:string;
a1:array[1..10] of byte;
i:integer;
begin
s1:=memo1.Lines.Text;
for i:=1 to 10 do
begin
s:=copy(s1,(2*i-1),2);
a1:=byte($s);//这句话为什么不对呢?
end;
end;
var
s,s1:string;
a1:array[1..10] of byte;
i:integer;
begin
s1:=memo1.Lines.Text;
for i:=1 to 10 do
begin
s:=copy(s1,(2*i-1),2);
a1:=byte($s);//这句话为什么不对呢?
end;
end;