S
senjoso
Unregistered / Unconfirmed
GUEST, unregistred user!
下面这一段程序有问题没?其中findfirst函数中间那个faAnyFile是什么作用?
procedure TMainForm.AddallButtonClick(Sender: TObject);
var
sr: TSearchRec;
i: integer;
begin
I := FindFirst(filelist.filename, faAnyFile, sr);
while i = 0 do
begin
DBAddButton.Click;
i:= FindNext(sr);
end;
FindClose(sr);
end;
procedure TMainForm.AddallButtonClick(Sender: TObject);
var
sr: TSearchRec;
i: integer;
begin
I := FindFirst(filelist.filename, faAnyFile, sr);
while i = 0 do
begin
DBAddButton.Click;
i:= FindNext(sr);
end;
FindClose(sr);
end;