W
wuqvei2002
Unregistered / Unconfirmed
GUEST, unregistred user!
我编了一段将中文逗号转化为英文逗号的代码,但点button时就死了,代码如下:
procedure TForm1.Button1Click(Sender: TObject);
var
s:string;
position:integer;
begin
s:=edit1.Text;
position:=pos(',',s);
while position<>0 do
begin
delete(s,position,2);
insert(',',s,position);
end;
showmessage(s);
end;
end.
请指教。
procedure TForm1.Button1Click(Sender: TObject);
var
s:string;
position:integer;
begin
s:=edit1.Text;
position:=pos(',',s);
while position<>0 do
begin
delete(s,position,2);
insert(',',s,position);
end;
showmessage(s);
end;
end.
请指教。