有关Opendialog的问题(50分)

  • 主题发起人 主题发起人 cloudlet
  • 开始时间 开始时间
C

cloudlet

Unregistered / Unconfirmed
GUEST, unregistred user!
用Delphi自带的Opendialog时,只能选择一个文件,要一次性选择多个文件怎么办??
 
Opendialog属性Options的ofAllowMultiSelect设为True
 
OpenDialog1->options->ofallowmultiselect->true;
showmessage(OpenDialog1.Files.Text);
 
Opendialog1有一个options属性,其中的ofallowmultiselect设为true就可以了
 
Opendialog属性Options的ofAllowMultiSelect设为True[8D][8D]
 
Opendialog属性Options的ofAllowMultiSelect设为True
OpenDialog.Files.Count为选择的文件个数
OpenDialog.Files为选择的第i个文件的文件名
 
后退
顶部