Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <GUIConstantsEx.au3>
- #include <WindowsConstants.au3>
- #include <ListviewConstants.au3>
- #include <guilistview.au3>
- GUICreate("listview items", 300, 200, -1, -1)
- $listview = GUICtrlCreateListView("col1 |col2 |col3 ", 10, 10, 200, 150)
- $button = GUICtrlCreateButton("Start", 75, 170, 70, 20)
- GUICtrlCreateListViewItem("item1|col22|", $listview)
- GUICtrlCreateListViewItem("item2|col12|col13", $listview)
- GUICtrlCreateListViewItem("item3|c3332|", $listview)
- GUICtrlCreateListViewItem("item4|44444|col33", $listview)
- GUICtrlCreateListViewItem("item5|5555|col33", $listview)
- GUISetState()
- While 1
- Switch GUIGetMsg()
- Case -3
- Exit
- Case $button
- _Start()
- EndSwitch
- WEnd
- Func _Start()
- ;~ _GUICtrlListView_SetItemSelected($listview, 0)
- $dataitem = GUICtrlRead(GUICtrlRead($listview))
- $GetColItem = StringSplit($dataitem, "|")
- If $GetColItem[3] = "" Then; kiểm tra dữ liệu cột 3
- ;Đén đây thì bó tay. Vậy mong Pro trợ giúp, xin trân thành cảm ơn.
- ;Làm sao để kiêm tra cột 3 khi có dữ liệu trống thì nó sẽ chuyển sang item tiếp theo
- Else
- MsgBox(0,"", GUICtrlRead(GUICtrlRead($listview)))
- EndIf
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement