如何知道一个目录中有多少个文件? RT,谢谢了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 例如我如何知道C:\Windows中有多少个EXE文件。 function FileCount(Path:String):Integer; var Rec:TSearchRec; begin Result:=0; if (FindFirst(Path,$01,Rec)=0) then begin repeat Inc(Result); until FindNext(Rec) <> 0; FindClose(Rec); end; end; n:=FileCount('C:\Windows\*.EXE'); 用filelistbox1.Items.Count就可以了但得加个控件 子目录呢??谢谢,这个问题我解决了。用递归+TStringList解决的 Delphi不差钱,差的是框架+鼓吹! 定义小数类型的变量~~real?float? 压缩算法 关于报表套打的问题,在线等待 ◆◆在线程中,如何退出程序◆◆ 当前行数据,多行选择 Setsystemtime(systemtime);我是这样写的,怎么老编译不过? 我想自绘轨迹条(TrackBar),但是怎么才能得到滑块的Rect呢??100高分酬谢!! image类的控件 怎么样显示出tif格式的图片 wise哪里有下载的? 很简单的问题,Combobox 请问如何设置一个组件的默认值?
var
Rec:TSearchRec;
begin
Result:=0;
if (FindFirst(Path,$01,Rec)=0) then
begin
repeat
Inc(Result);
until FindNext(Rec) <> 0;
FindClose(Rec);
end;
end; n:=FileCount('C:\Windows\*.EXE');
但得加个控件