Page 1 of 1

For Each <group> In .Groups bug

Posted: 21 Nov 2018, 22:14
by Cube8
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.

Re: For Each <group> In .Groups bug

Posted: 01 Dec 2018, 15:06
by TiKu
Hi,

This problem did exist for 13,5 years. Good catch!
A bugfix has already been committed to the GitHub repository. I have not yet created a new release.

/Edit: The new version has been released.

Regards
TiKu