怎样寻找或打开相对路径下的文件名?谢谢帮忙解答!
解决方案 »
- 在DELPHI2006版中如何安装ACTIVEX控件?
- 用ado控件配置问题 (菜鸟问题)
- 怎样通过代码实现启动本机的SQLServer服务?
- 那位大侠有用IdPOP3收邮件的原码吗?100分!!!在线等待,
- Delphi做界面,其他语言实现。(怎么才能实现上述结构呢?)
- 请问CLIENTSOCKET 与SERVERSOCKET的用法(急用)
- 关于树
- 很麻烦的程序
- 讨论一下,virtual与dynamic的区别
- DELPHI 在 Win2k 下调用 VC 编写的 DLL 时遇到的问题!!!
- 数据库出现错误:Capability not supported
- ★★★★★★ 征集Delphi版2003年风云人物和风云帖★★★★★★
var
sr: TSearchRec;
FileAttrs: Integer;
begin
FrmDbMaintain.clFile.Clear;
FileAttrs := $2F;
if FindFirst(AppDir + '\recbac\*.etb',FileAttrs,sr) = 0 then
begin
repeat
if (sr.Attr and FileAttrs) = sr.Attr then
begin
with frmDbMaintain.clFile do
begin
//Cells[1,RowCount-1] := sr.Name;
//Cells[2,RowCount-1] := IntToStr(sr.Size);
Items.Add(sr.Name);
end;
end;
until FindNext(sr) <> 0;
FindClose(sr);
end;end;这是我以前的代码,可能有点乱,希望对你有用
再请麻烦帮我在旁边注解一下好吗,有些语句不是很清楚!
非常感谢!