当然如果能将该文件对象读到里面更好,如果不能,将文件名称读到里面也可以。
谢谢各位了!
谢谢各位了!
解决方案 »
- 追问一个数组问题?
- 问一个奇怪的问题,高分问!!!!!!!!急等
- application.run(主程序执行时,都运行些什么事件,active,show,create....)它们的顺序?
- 如何把JPEG等转换为PDF格式的?
- StringGrid用法一问!!!
- 关于delphi窗口初始化显示的问题
- 请问,我在xp下做的程序,到98里后会字体变化呀,窗口也变行呀!!!!!!
- 问一下大家如何在dephi5下安装DevExpressVCL
- 我使用了TCanvas的CopyRect方法,但有闪烁现象,如何解决?
- 小东西照样有50分。怎样取extended的整数部分?转换成integer?这是怎么啦, 系统老是将我的问题转换成别人的问题。
- 关于切换中英文
- 安装.dpk文件之后,将新控件加入Form,结果编译是说该控件的.dcu文件找不到,为什么?
我这里怎么没有找到,
我用的是Delphi 6。
var
fpath: String;
fs: TsearchRec;
begin
fpath:=disk+path+'\*.*';
if findfirst(fpath faAnyFile fs)=0 then
begin
if (fs.Name<>'.')and(fs.Name<>'..') then
if (fs.Attr and faDirectory)=faDirectory then
findall(disk path+'\'+fs.Name fileresult)
else
fileresult.add(disk+strpas(strupper(pchar(path)))+'\'+strpas(
strupper(pchar(fs.Name)))+'('+inttostr(fs.Size)+')');
while findnext(fs)=0 do
begin
if (fs.Name<>'.')and(fs.Name<>'..') then
if (fs.Attr and faDirectory)=faDirectory then
findall(disk path+'\'+fs.Name fileresult)
else
fileresult.add(disk+strpas(strupper(pchar(path)))+'\'+str
pas(strupper(pchar(fs.Name)))+'('+inttostr(fs.Size)+')');
end;
end;
findclose(fs);
end;
不好意思。比较乱!fileresult就是你要的。你改改吧!
找到你要添加的文件名写到combobox的item里面