Okay, something I'm completely lost on and can't seem to find any info on. If I assign a unique key to every item in the listview box with the add method, how do I later acess an item in the list by that key instead of by the index? I see how to determine what the key is for an item (after I've referenced the item by index), but not how to directly reference an item by the key.
My problem is that I have a sorted listview with multiple columns. Because of having the list sorted, I can never be sure of the specific index that an item may get added at. Specifically, when trying to add the subitems, after adding the main item, I can't just rely on the index of the main item. Normally the sub items would be added using a line like this.
lstview.listitems(i).subitems(1) = sSubItemText
But when I added the main item, that index could be anywhere in the list since it's a sorted list. So I figured I'd need to use the key, but I can't figure out how to reference a specific list item by the key.
Thank you!