比如有这个几个字符串:
str1:
"C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\ssms.exe"/dde
str2:
"D:\安装\shreader\shreader.exe" "%1"
str3:
"C:\Program Files\Borland\BDS\4.0\Bin\BDSLauncher.exe" "C:\Program Files\Borland\BDS\4.0\Bin\bds.exe"/np我想截取第一个双引号中的字符,比如:str1:
C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\ssms.exe
str2:
D:\安装\shreader\shreader.exe
str3:
C:\Program Files\Borland\BDS\4.0\Bin\BDSLauncher.exe其他的不管有多长都不管,我略懂copy函数可以截取一些
str1:
"C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\ssms.exe"/dde
str2:
"D:\安装\shreader\shreader.exe" "%1"
str3:
"C:\Program Files\Borland\BDS\4.0\Bin\BDSLauncher.exe" "C:\Program Files\Borland\BDS\4.0\Bin\bds.exe"/np我想截取第一个双引号中的字符,比如:str1:
C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\ssms.exe
str2:
D:\安装\shreader\shreader.exe
str3:
C:\Program Files\Borland\BDS\4.0\Bin\BDSLauncher.exe其他的不管有多长都不管,我略懂copy函数可以截取一些
解决方案 »
- 关于Ado访问*.db数据文件的问题!求救!!!!!!
- Delphi程序
- Delphi8的Object TreeView那去了!
- 问一个弱智的问题?在线等待!
- 在DELPHI中如何裝載可執行文件
- 不好意思,上一个问题问错了。各位请问,如何返'王'的Unicode 字符代码,及如何反过来求?
- 我才发现的一个小问题?//帮帮忙呀???
- 怎么把文字直接输出到IE中的INPUT框中?
- 请救火,Delphi中如何生成一个Wizard,谢谢!
- 请教:如何能禁止显示数据库程序中BDE的用户登录对话框?
- delphi BDE 连接MSSql server 非1433 端口数据库
- delphi编程,检测电脑上是否装有 pdf 阅读器
delete(str,pos(''''),10000);
showmessage(str);
delphi]delete(str,pos('''''',str),2);
delete(str,pos('''''',str),10000);
showmessage(str);
2个位置之间就是你要的结果了,用copy取得
C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\ssms.exe
我看看这个文件是否存在,要怎么写?
ShowMessage(sFileName + '存在');