这段程序不能执行,
var
a:string;
begin
a:='00001';
winexec('C:\Program Files\Internet Explorer\IEXPLORE.EXE '+'http://localhost:8080/addressbook/'+ a +'.htm',SW_SHOW);
end;
报错为
[Error] Unit1.pas(40): Incompatible types: 'String' and 'Integer'
但是
winexec('C:\Program Files\Internet Explorer\IEXPLORE.EXE '+'http://localhost:8080/addressbook/'+ '00001' +'.htm',SW_SHOW);
可以执行
难道winexec参数不能加变量??
var
a:string;
begin
a:='00001';
winexec('C:\Program Files\Internet Explorer\IEXPLORE.EXE '+'http://localhost:8080/addressbook/'+ a +'.htm',SW_SHOW);
end;
报错为
[Error] Unit1.pas(40): Incompatible types: 'String' and 'Integer'
但是
winexec('C:\Program Files\Internet Explorer\IEXPLORE.EXE '+'http://localhost:8080/addressbook/'+ '00001' +'.htm',SW_SHOW);
可以执行
难道winexec参数不能加变量??
解决方案 »
- delphi中如何内嵌word并将doc的文档内容读取到控件DBRichEdit
- 在线等求解,delphi高手帮忙指点,声明字段的问题
- 诚征创业搭档
- 帮帮忙
- 非常简单问题,为什么数组参数到函数里面不能重新定义大小?在线等
- delphi listview 怎么实现分页,增加两个按钮上一页下一页
- 如何设置默认路径
- xe2中的那个tzipfile有bug,但是只在xe3中修正了,哪位可以个xe3中的pas,谢谢了
- 进程与线程
- 好东东! Delphi2Java是一个Delphi程序员的Java开发工具
- 关于DLL组件问题。提示:Control '' has no parent window
- 请教bsSkinMessage的使用方法
winexec(PChar('C:\Program Files\Internet Explorer\IEXPLORE.EXE '+'http://localhost:8080/addressbook/'+a+'.htm'),SW_SHOW);