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