代碼如下,將db資料庫欄位名稱如11,22,33,讀出再寫入多個checkbox的值,謝謝大大幫忙#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("test", 260, 280)
Dim $Checkbox[10]
$Checkbox[1] = GUICtrlCreateCheckbox("11", 50, 50, 25, 17)
$Checkbox[2] = GUICtrlCreateCheckbox("22", 120, 50)
$Checkbox[3] = GUICtrlCreateCheckbox("33", 190, 50)
$Button1 = GUICtrlCreateButton("確認", 50, 240, 170, 25, $WS_GROUP)
GUISetState()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
EndSwitch
WEnd
|