How do you populate listview ?
If you already enumerate for this, you could either :
- Build a vector during first pass. It will allow index access
- Make a custom JS object with one property being your
itemfromtab.dirs, give your object atoStringmethod (returningitem.nameor whatever else you want) and fill the listview with this object.
Edit : for an example of solution 2, see : Keep PC awake until one specific process ends