- 4.24.2.12 -
Standard Units
Dos Unit
Dos Unit Procedures and FunctionsFindNext procedure
Targets: MS-DOS, OS/2, Win32
Dos Unit, WinDos Unit
Finds the next entry that matches the name and attributes specified in
an earlier call to FindFirst.
Declaration:
procedure FindNext(var F: TSearchRec);
Remarks:
FindNext is used in conjunction with
FindFirst. Use FindNext to locate
any addition files matching the search criteria defined by a prior call to
FindFirst. F must be the same
variable that was passed to FindFirst.
All errors are reported in DosError, which is a variable defined
in the Dos unit.
Example:
uses
Dos;
var
DirRec : SearchRec;
begin
FindFirst('C:/*.*',AnyFile,DirRec);
while DosError = 0 do begin
WriteLn(DirRec.Name);
FindNext(DirRec);
end;
end.
See also:
FSearch
|
|
|
FindFirst procedure |
Table of Content |
FSearch function |
- 4.24.2.12 -