Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Get list view text as array or string

$
0
0

Hello I need to dynamically edit a listview, removing certain objects from a row.

 

The way I seem to have concluded that would be best for this, is retreiving the text of each row, and then simply removing the selected item.

 

I found a _GUICtrlListView_GetItemTextArray() command, but it only seems to return a few numbers, not the actual text of the listview?

 

Is there any way to get either(preferably) the whole listview as an array, or(less preferably) get the text of each individual row?[and then perhaps combine that into a 2d array?]

 

Here is a picture of what I am trying to do:

9nvBvdy.png

 

When a user clicks the [X] my script gets the username next to it, and then what I want to be able to do, is get the contents of the listview as an array(or string), convert it to string, replace the username and it's [X], then turn the string back into an array, and loop through it re-adding the items in the same order they were before. So if a user clicked the [X] by NetWork, it would disappear, and the convos to it's right would move left to take it's place.

 

Currently my only obstacle is the inability to get a complete list of text from the table.

 

Thanks ahead of time for your help.


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>