courselzplzp
Programmer
when I run <findfirst('A:\',attr,sr)>,the messagebox appear,
that is not expected,how to set windows make it disappear?
that is not expected,how to set windows make it disappear?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
var
SearchRec:TSearchRec;
procedure TForm1.Button1Click(Sender: TObject);
begin
findfirst('c:\*.*',faAnyFile,SearchRec);
Edit1.Text := SearchRec.Name + ' is ' + IntToStr(SearchRec.Size) + ' bytes in size';
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
if (FindNext(SearchRec) = 0) then
Edit1.Text := SearchRec.Name + ' is ' + IntToStr(SearchRec.Size) + ' bytes in size'
else
FindClose(SearchRec);
end;