- 人气:
- 放大
- 缩小
- 二维码
- 赞赏
delphi IdWhois1 简单的用法
var
Line, FindResult: string;
iPos: integer;
begin
FindResult := IdWhois1.Whois(Edit1.Text); //Edit1.Text = 域名 如 www.delphitop.com
while Length(FindResult) > 0 do
begin
iPos := Pos(#10, FindResult);
Line := Copy(FindResult, 1, iPos - 1);
Memo1.Lines.Add(Line);
Delete(FindResult, 1, Length(Line) + 1);
end;