(1)str='project eof'
(2)str='14.txt 12.txt 151.txt'如果str中有.txt,则将14.txt,12.txt,151.txt分别取出。
(2)str='14.txt 12.txt 151.txt'如果str中有.txt,则将14.txt,12.txt,151.txt分别取出。
解决方案 »
- 关于 TFrame 的一些古怪问题
- 请教treeview控件的操作!在线等待!!!!!
- *******怎样遍历整个旧的数据库然后和新数据库比较,旧的数据库没有的表或者字段自动创建。分不够在加*****
- 请问为什么我下的dbgrideh在DELPHI5中无法安装啊,compile时有个过程有错!
- 请问用编写SQL查询语句,怎么样用参数?
- 报表记录超过一定数目就添加一个标题,相当于分页
- 在MDI中,有两个非模式的子窗体,我想通过其中一个调用另一个,怎么调用?
- 外包:网页数据采集程序开发
- 这里有一个问题?
- Delphi能不能开发WindowsCE应用?
- 有使用Delphi的程序员吗?每天都可以在线的!!大家联系一下。
- 求教大家:关于数据库查询与结果显示得问题!在线等待....
I: integer;
begin
str :='14.txt 12.txt 151.txt';
i := Pos('.txt', str);
while i > 0 do
begin
s := copy(str, 1, i +4);
delete(str, 1, i+4);
s := Trim(s);
showmessage(s);
i := Pos('.txt', str);
end;
end;
begin
pos1:=Pos(' ',str);
str1:=copy(str,1,6);
str:=copy(str,7,length(str));
str2:=copy(str,1,6);
str:=copy(str,7,length(str));
str3:=copy(str,1,6);
end;
var
i: integer;
S: string;
SL: TStringList;
begin
S := '111 222 333 444 555';
SL := TStringList.Create;
ExtractStrings([' '], [], PChar(S), SL);
for i := 0 to SL.Count - 1 do
showmessage(SL.Strings[i]);
SL.Free;
end;