RT
解决方案 »
- 有没有检测本机网卡流量的控件或者资料
- 谁能帮我解释下这句SQL语句什么意思?
- 一个关于图片拉伸的问题!我想了很久没有想出解决方法来,请各位帮助!!
- 判断键盘录入的问题,彩蛋中的按键盘的记录和判断功能!
- 很简单的问题:如何得到pagecontrol中的一个Tabsheet中的控件个数ComponentCount
- 怎么重装ODBC?
- image怎样按比例显示一幅图片
- image型字段的显示问题,在线等待。
- 单条记录在QuickRep中多页显示,能实现吗?
- 在vc++中有很多类型,如HDC,HWND,FARAPROC...,这些对应在DELPHI中是什么啊?
- 今天我看了一下,总发个33个贴,能让我结贴的只有9个?
- 本人想知道如何查找某个API函数所属单元
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;
procedure TForm1.Button1Click(Sender: TObject);
var li:TstringList;
begin
li:=TstringList.create;
try
findall('',edit1.text,li);
label1.caption:=inttostr(li.count); //为所求
finally
li.free;
end;
end;