For Each <group> In .Groups bug
Posted: 21 Nov 2018, 22:14
Hi.
I have just discovered a bug that affects for...each iteration for groups.
Normally, whenever I add some groups and items, the iteration works perfectly.
The bug occurs whenever I call ELV.ListItems.RemoveAll. After that, although the groups are still there (they are accessible through ELV.Groups.Item(x)), the for...each iteration doesn't work (.Groups collection acts as if it is empty).
It doesn't matter if the list is empty or some items are added after RemoveAll.
I tried declaring the iterator variable as IListViewGroup but didn't work either.
I have just discovered a bug that affects for...each iteration for groups.
Normally, whenever I add some groups and items, the iteration works perfectly.
The bug occurs whenever I call ELV.ListItems.RemoveAll. After that, although the groups are still there (they are accessible through ELV.Groups.Item(x)), the for...each iteration doesn't work (.Groups collection acts as if it is empty).
It doesn't matter if the list is empty or some items are added after RemoveAll.
I tried declaring the iterator variable as IListViewGroup but didn't work either.