X
xhcxhc100
Unregistered / Unconfirmed
GUEST, unregistred user!
function TForm1.delstr(s: string): string;
begin
while pos(' ',s)>0 do
begin
s:=stringreplace(s,' ','',[rfReplaceAll]);
end;
result:=s;
end;
这是我自定义的函数,当我的字符串有两行的时候,第一行为空,第2行有值,值只能靠近到第2行,不明白为什么
begin
while pos(' ',s)>0 do
begin
s:=stringreplace(s,' ','',[rfReplaceAll]);
end;
result:=s;
end;
这是我自定义的函数,当我的字符串有两行的时候,第一行为空,第2行有值,值只能靠近到第2行,不明白为什么