本文整理自网络,侵删。
procedure TForm1.Button1Click(Sender: TObject);var FileToFind: string;begin FileToFind := SysUtils.FileSearch(Edit1.Text, GetCurrentDir); if FileToFind = '' then ShowMessage('Couldn''t find ' + Edit1.Text + '.') else ShowMessage('Found ' + FileToFind + '.');end;
procedure TForm1.FormCreate(Sender: TObject);begin Label2.Caption := GetCurrentDir;end; 相关阅读 >>
Delphi2010中使用pchar时e2010 incompatible types: 'char' and 'ansichar' 错误的处理
Delphi 10.3 中安装程序自动升级插件autoupgrader_pro_v5.2
更多相关阅读请进入《Delphi》频道 >>