是不是这意思:#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$file = FileOpen("110.txt", 0)
If $file = -1 Then
MsgBox(0, "错误", "不能打开文件.")
Exit
EndIf
Dim $lines1 = ''
While 1
$line = FileReadLine($file)
If @error = -1 Then ExitLoop
$lines1 &= StringReplace($line, '"', '') & '|'
WEnd
FileClose($file)
$first0 = StringReplace(FileReadLine("110.txt", 1), '"', '')
$file = FileOpen("111.txt", 0)
If $file = -1 Then
MsgBox(0, "错误", "不能打开文件.")
Exit
EndIf
Dim $lines = ''
While 1
$line = FileReadLine($file)
If @error = -1 Then ExitLoop
$lines &= StringReplace($line, '"', '') & '|'
WEnd
FileClose($file)
$first = StringReplace(FileReadLine("111.txt", 1), '"', '')
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("选择", 337, 143, 238, 133)
$Combo1 = GUICtrlCreateCombo($first0, 88, 26, 177, 5)
GUICtrlSetData(-1, $lines1, "项目3")
$Combo2 = GUICtrlCreateCombo($first, 88, 56, 177, 25)
GUICtrlSetData(-1, $lines, "项目3")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|