12834| 29
|
競賽[高8]最好和最簡潔的文件打開對話框功能 |
80金錢
最佳答案Function GetFileName(TitleText As String, Filter As String, FilterText As String, ByVal DialogType As Integer, Optional ByVal FilePath) As String
'參數(shù)DialogType說明:
'1.“打開”對話框
'2.“另存為”對話框(此項(xiàng)如執(zhí)行類型篩選時(shí)會(huì)出錯(cuò),所以加了出錯(cuò)處理為 Resume Next)
'3.“文件選取器”對話框
'4.“文件夾選取器”對話框
'例:AA = GetFileName("打開", "*.ini;*.txt", "配置文件", 1, 3)
On Error Resum ...
| ||
| ||
| ||
| ||
| ||
| ||
|站長郵箱|小黑屋|手機(jī)版|Office中國/Access中國 ( 粵ICP備10043721號(hào)-1 )
GMT+8, 2024-10-23 06:27 , Processed in 0.109577 second(s), 33 queries .
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.