瑞文文摘

Delphi在字符串中删除指定字符串



标签:Delphi在字符串中删除指定字符串

function DelStr(hex,str:string):string;
var
i:Integer;
begin
for i:=1 to Length(hex) do
begin
if Copy(Hex,1,Length(str)) = str then
begin
Delete(Hex,1,Length(str))
end
else
begin
result:=result + Copy(Hex,1,1);
Delete(Hex,1,1);
end;
end;
end;

上一篇:小学教师创新教育演讲稿

下一篇:低年级教学小策略



瑞文软件工作室 版权所有 [冀ICP备17033643号]
[联系我们][访问电脑版]