[Warning] NewLibFrm.pas(8): Unit 'FileCtrl' is specific to a platform
想问问大家为什么,我该如何消除这个警告。
...全文
11810打赏收藏
谁用过SelectDirectory这个函数?
我使用了这个函数,系统要求将FileCtrl这个单元包括进去,我就应不容辞的包括进去了。但是每次编译的时候系统开始出警告: [Warning] NewLibFrm.pas(8): Unit 'FileCtrl' is specific to a platform 想问问大家为什么,我该如何消除这个警告。
type
TForm1 = class(TForm)
Button1: TButton;
Label1: TLabel;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
LabelDir: string;
begin
if SelectDirectory('请选择搜寻文件夹', '', LabelDir) then
Label1.Caption := LabelDir;
end;