//OpenDialog获取文件

procedure TForm2.Button1Click(Sender: TObject);

begin

  File_Path:='';

  if OpenDialog1.Execute then File_Path:=OpenDialog1.FileName;

  if Length(File_Path)>0 then

     Edit1.Text:=OpenDiaLog1.FileName;

end;

相关文章:

  • 2021-09-25
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
猜你喜欢
  • 2021-10-19
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2022-02-07
相关资源
相似解决方案