Delphi 中 paramstr 的用法
来源:互联网 发布:mac的pages怎么转word 编辑:程序博客网 时间:2024/05/16 02:03
原型 function paramstr(i:index):string
对于任何application paramstr(0)都默认代表的是应用程序的绝对路径。那么有paramstr(0),就肯定
有paramstr(1),paramstr(2)...了。它们的值又是什么了?我试了下取出的是空值,又不能赋值。
delphi帮助中说Returns a specified parameter from the command-line.从命令行中返回一个特别的参数。
折腾了半天才搞清楚,就是在exe文件后面可以跟参数,paramstr 获取的就是exe文件后面跟参数。
如有可执行文件project1.exe 在运行中输入 e:\project1.exe 123 456 789
那么paramstr(1)='123' paramstr(2)='456' paramstr(3)='789'
用shellexecute的话可以在parameters参数位置输入值。不同的参数值之间用空格隔开
如 shellexecute(application.Handle,'open','project4.exe','123 456', 'e:\',SW_SHOW);
所以用paramstr可以在应用程序间进行数据传输。
- Delphi 中 paramstr 的用法
- Delphi 中 paramstr 的用法
- Delphi 中 paramstr 的用法
- Delphi中paramstr 的用法(转载)
- 在delphi中paramstr用法
- 在delphi中paramstr用法
- delphi中传参数才能运行的软件编写(ParamStr)
- delphi中的ParamStr
- ParamStr的用处
- ParamStr
- DELPHI中MessageBox的用法
- DELPHI中MessageBox的用法
- DELPHI中MessageBox的用法
- DELPHI中MessageBox的用法
- Delphi中MessageBox的用法
- delphi中goto的用法
- delphi中nil的用法
- delphi中指针的用法
- ArrayList.ToArray()
- 刚才试用了下有道搜索,感觉还可以
- how to understand TSs – S1 handover with MME and SGW relocation and Indirect Tunneling
- Requirement
- map使用积累
- Delphi 中 paramstr 的用法
- 位运算
- ListBox操作(绑定、添加、删除、上移、下移、添加全部、删除……)
- .NET+AE开发中常见几种非托管对象的释放
- 堆和栈的区别
- Ext让grid支持按列排序--中文排序问题
- vs2010 删除工具栏上图标
- 合并两个有序序列
- redhat下安装中文输入法