mohan93 Posted September 2, 2014 Posted September 2, 2014 Hello Guys, Am struggling with inserting the read text file into Listview for display. I have a some 10 case, $Install, $Uninstall, etc.... where i read different text files on clicking the different button. Am not able to: 1. How to i create a listview in common for all buttons to display, where i can overwrite the values when i click different button everytime. 2. Write the read items in VBS in every case and display it to the listview created. Please assist. While 1 $msg = GUIGetMsg() Select Case $msg = $Install If Not _FileReadToArray("C:tempInstall.txt",$aRecords) Then MsgBox(4096,"Error", " Error reading log to Array error:" & @error) Exit EndIf For $x = 1 to $aRecords[0] **************** Have to insert my data into Listview ******************* Next Case $msg = $Uninstall If Not _FileReadToArray("C:tempUninstall.txt",$aRecords) Then MsgBox(4096,"Error", " Error reading log to Array error:" & @error) Exit EndIf For $x = 1 to $aRecords[0] **************** Have to insert my data into Listview ******************* Next Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect
Jfish Posted September 2, 2014 Posted September 2, 2014 I like to start by deleting all items to make sure the the listview is clear with _GUICtrlListView_DeleteAllItems ( $hWnd ) then I use _GUICtrlListView_AddItem in the for loop to populate. Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now