本文整理自网络,侵删。
//如:http://www.delphitop.com/
function CheckUrl(const sUrl:string):Boolean;
var
bl :Boolean;
begin
Result := False;
bl := Pos('http://www.',LowerCase(sUrl))>0;
bl := bl or (Pos('.delphitop.',LowerCase(sUrl))>0);
if not bl then
begin
MessageBox(0, 'URL地址配置不正确!请检查后重试! ', '系统提示',
MB_OK + MB_ICONSTOP + MB_TOPMOST);
Exit;
end;
Result := bl;
end;
相关阅读 >>
Delphi 全局变量 hinstance 到底是在什么时候赋值的?
更多相关阅读请进入《Delphi》频道 >>