每日一问....放分300!!!!!大家都来收分吧!!! strfile:=copy (str,6,length (str) -5);//得到文件名是取得从str第6位开始到的字符串付给了strfile 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 比如str=‘1234567890.txt’.strfile = '67890.txt' strfile:=copy (str,6,length (str) -5);//得到文件名是从str第6位开始,一直取 (str的长度-5) 个字符 ,并付给strfile 如:str:='e:\aa\bbbbb.htm';strfile:=copy (str,6,length (str) -5;//strfile 为 bbbbb.htm 相关的api是:GetSystemDirectory ,GetCurrentDirectory, GetWindowsDirectory, SetCurrentDirectory str:=getcurrentdir; //得到当前路径;strfile:=copy (str,6,length (str) -5);//得到文件名 但是没有回答问题的偶就不能给你了比如象:kingshine(kingshine) CDSoftwareWj(95927) hellion(恶人) strfile:=copy (str,6,length (str) -5);是截取字符串有多种情况1 str长度小于6 strfile应该为空2 str长度大于6小于11 strfile为str第6位到最后3 str长度大于11 strfile为str第6位到11位不知道你想得到什么文件夹的名字 我看好像是截取文件名的明的阿你也在高网络编程吗?大家以后交流交流啊我也在高网络编程啊写过一个REMOTE CONTROL的程序[email protected] 关于 strfile:=copy (str,6,length (str) -5);//得到文件名的解释: whether(是否?!) 很详细了……怎么样得到文件夹名称啊???? API 有:GetSystemDirectory ,GetCurrentDirectory, GetWindowsDirectory, SetCurrentDirectory 相关的api是:GetSystemDirectory ,GetCurrentDirectory, GetWindowsDirectory, SetCurrentDirectory 请问listview中怎么实现同一列中不同颜色的字符串 UTF8String和UnicodeString有什么区别? delphi 中如何显示一张表中的数据 俄罗斯方块 Delphi2005 正式版中含source吗? ★★★★★散分!!!收集delphi精彩网站!!!!!!!!!★★★★★ 如何在Delphi中使用SQL的游标,最好有代码。 大家说说目前在工厂里面用的最多的开发语言是什么? delphi中控件问题 请指教!!! 过滤时间字段问题! ~~'文本分析类'升级了,增加分析“链接”功能。老规则不变。~~
是从str第6位开始,一直取 (str的长度-5) 个字符 ,并付给strfile
如:
str:='e:\aa\bbbbb.htm';
strfile:=copy (str,6,length (str) -5;
//strfile 为 bbbbb.htm
strfile:=copy (str,6,length (str) -5);//得到文件名
是截取字符串
有多种情况
1 str长度小于6
strfile应该为空2 str长度大于6小于11
strfile为str第6位到最后3 str长度大于11
strfile为str第6位到11位
不知道你想得到什么文件夹的名字
你也在高网络编程吗?
大家以后交流交流啊
我也在高网络编程啊
写过一个REMOTE CONTROL的程序
[email protected]
whether(是否?!) 很详细了……怎么样得到文件夹名称啊????
API 有:
GetSystemDirectory ,GetCurrentDirectory, GetWindowsDirectory, SetCurrentDirectory