本文整理自网络,侵删。
var
sString: string;
iPos,iLen: integer;
begin
sString:= 'http://www.3464.com/article.asp?articleid=4750';
iLen:= Length(sString);
iPos:= Pos('/',sString);
if iPos=0 then
Exit;
sString:= Copy(sString, iPos+2,iLen-iPos);
iPos:= Pos('/',sString);
if iPos=0 then
Exit;
sString:= Copy(sString, 1,iPos-1);
end;
相关阅读 >>
Delphi strtodatetime 这个函数在win7下出错
incsecond:将一个tdatetime变量加减一定数量的秒数
Delphi整理七(function and procedure)
更多相关阅读请进入《Delphi》频道 >>