Borland.Delphi.ShellAPI.shellexecute(0,'open','explorer.exe','http://www.baidu.com','',Borland.Delphi.Windows.SW_SHOW);
'http://www.baidu.com',,,,,其中网址部分我是这样写的:
var
lWZ: string;
begin
lWZ := dsbzddh.DataSet.FieldByName('WZ').AsString ;
if DataGrid1.FocusedField.FieldName = 'WZ' then
Borland.Delphi.ShellAPI.shellexecute(0,'open','explorer.exe','lWZ','',Borland.Delphi.Windows.SW_SHOW);
end;
报错,说 lwz 网址无效,请问我该怎么写呢?? |