请问如何将FileOpenDialog查找的路径及文件插入到GUICtrlCreateInput函数中。。。
请问如何将FileOpenDialog查找的路径及文件插入到GUICtrlCreateInput函数中。。。[ 本帖最后由 無☆名 于 2008-10-18 08:00 编辑 ] $filepath=FileOpenDialog("选择文件","C:\","程序文件(*.exe)",3)
If Not @error Then
GUICtrlSetData($Input1, $filepath) $File = FileOpenDialog("打开", "", "(*.*)")
If $File <> "" Then
GUICtrlSetData($Input1, $File)
EndIf $source_files_name = FileOpenDialog("选择源文件", @ScriptDir & "\", "Microsoft Office Excel 工作簿(*.xls)", 1 + 2 + 4, "", $Form1)
If @error Then
MsgBox(64, "提示", "没有选择源文件")
Else
If StringRegExp($source_files_name, ".*\|.*") = 0 Then
GUICtrlSetData($List1, $source_files_name)
Else
$files_name = StringSplit($source_files_name, "|")
$files_dir = $files_name
For $r = 2 To UBound($files_name) - 1
$tmp = $files_dir & "\" & $files_name[$r]
GUICtrlSetData($List1, $tmp)
Next
EndIf
EndIf 学习了,谢谢。
页:
[1]