Thanks.
Another quirk; most of the time, I can deal with the object that is returned by ItemClick, but if I want to delete it (and for some other operations), I need the index. That, it appears, is not always consistent.
I have my clv, dataList, and I've popped in this bit of code:
Code:
Sub dataList_ItemClick( index As Int, Value As Object )
Log("Clicked on item " & index)
plus some extra log items to tell me when a refresh is triggered. The particular list I noticed this on had only one element, but the logging shows it's happening with more.
I start the app, tap on the item in the list, and it has an index of 0, as I'd expect.
But if I then trigger the refresh event, after which my code calls dataList_Clear, and the refills the clv, clicking on that first item returns an index of 1 (which, consequently, calls other things to fail).
Should I instead be re-initialising the clv, rather than simply calling Clear when I need to reload it?