代码如下,请老师解答,万分感谢中!type
TForm1 = class(TForm)
Label1: TLabel;
private
procedure Search ;
procedure Again;
public
{ Public declarations }
end;var
Form1: TForm1;
SearchRec: TSearchRec;
implementation
{$R *.DFM}
procedure TForm1.SearchClick(Sender: TObject);
begin
FindFirst('c:\Program Files\delphi3\bin\*.*', faAnyFile, SearchRec);
Label1.Caption := SearchRec.Name + ' is ' + IntToStr(SearchRec.Size) + ' bytes in size';
end;
procedure TForm1.AgainClick(Sender: TObject);
begin
if (FindNext(SearchRec) = 0)
Label1.Caption := SearchRec.Name + ' is ' + IntToStr(SearchRec.Size) + ' bytes in size';
else
FindClose(SearchRec);
end;
TForm1 = class(TForm)
Label1: TLabel;
private
procedure Search ;
procedure Again;
public
{ Public declarations }
end;var
Form1: TForm1;
SearchRec: TSearchRec;
implementation
{$R *.DFM}
procedure TForm1.SearchClick(Sender: TObject);
begin
FindFirst('c:\Program Files\delphi3\bin\*.*', faAnyFile, SearchRec);
Label1.Caption := SearchRec.Name + ' is ' + IntToStr(SearchRec.Size) + ' bytes in size';
end;
procedure TForm1.AgainClick(Sender: TObject);
begin
if (FindNext(SearchRec) = 0)
Label1.Caption := SearchRec.Name + ' is ' + IntToStr(SearchRec.Size) + ' bytes in size';
else
FindClose(SearchRec);
end;
解决方案 »
- fastreport打印空行问题
- 求助---------编译程序后就报毒!!!
- toolbar上设置了30多个按钮只显示16格,为什么?
- 基础问题,两个函数的不同?
- 用dephi能直接实现读取lotus客户端邮件?
- 如何保存ACCESS的图片字段以及如何读取,我找过以前的贴子,结果都不行,特请教
- 如何注册flash组件!?
- ADOQuery替换ADOtable出错,could not convert variant of type (null) into type (double).
- 关于delphi xe6 开发安卓手机软件提几个问题?如:打开超链接,gif动态图,二维码扫描,访问sqlserver数据库等问题
- 谁能实现如下?
- delphi代码当前行背景为深灰色,怎么改回原来的白色?
- 主从数据更新问题
在实现部分中就没有用到