Jump to content

Display text in Listview and overwrite values


mohan93
 Share

Recommended Posts

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...