新手求助,添加数据到listview里面,现在却有一个问题,密码那列添加却无法正常更新。。。。。。好久没上来了。。。问题很基础,但看帮助好含糊,我有点笨。求指教。
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <GuiListView.au3>
#include <GuiImageList.au3>
#include <SQLite.au3>
#include <SQLite.dll.au3>
#region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 435, 224, 336, 150)
$ListView1 = GUICtrlCreateListView("", 0, 0, 433, 177)
_GUICtrlListView_AddColumn($ListView1, "账号", 200)
_GUICtrlListView_AddColumn($ListView1, "密码", 200)
$Input1 = GUICtrlCreateInput("", 40, 192, 121, 21)
$Label1 = GUICtrlCreateLabel("账号:", 0, 192, 40, 17)
$Label2 = GUICtrlCreateLabel("密码:", 176, 192, 40, 17)
$Input2 = GUICtrlCreateInput("", 216, 192, 121, 21)
$Button1 = GUICtrlCreateButton("添加", 352, 192, 75, 25)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$account = GUICtrlRead($Input1)
$password = GUICtrlRead($Input2)
;_GUICtrlListView_DeleteAllItems($ListView1)
_GUICtrlListView_AddItem($ListView1, $account)
For $z=0 To 999
_GUICtrlListView_AddSubItem($ListView1,$z,$password, 1 );控件,行,文本,列
next
EndSwitch
WEnd
|