本文整理自网络,侵删。
var URL := edtAddress.Text;
if not StartsText('http', URL) then //判断是否是http 开头,如果不是则
begin
URL := 'http://' + URL;
end;
相关阅读 >>
Delphi 在statusbar1.panels上显示日期时间星期
Delphi sysutils.strcopy、sysutils.strecopy
Delphi的datetostr strtodate格式灵活用法
更多相关阅读请进入《Delphi》频道 >>