I’m trying to remove itens from a list of lists if they are equal to 1 condition.
The result is, does not deletes all the indexes, only index 1 and 3, and shows the error regarding the length. “Trying to select item 4 of a list of 3”
I’m doing the debug and all it’s ok. Length = 5, check all the index 1,2,3,4,5 and shows the result.
Please help me understand what is missing or what i’m doing wrong?
I tried to check alternative solutions here, but i only found for lists with 1 column.
Ok, i understand the problem, but in my case i can’t select an item, you are using “selection” or “last item selected” because i want to remove taking into account a condition, so how can i do that without the index, without the select list item. I have to create a variable for the index ?
The removal by value is done in the remove procedure.
I copy the Elements of the ListView into a temporary list , work on the temporary list, then copy it back to the ListView. (I am being conservative here, as I have no assurance that working directly on the ListView.Elements list will affect the ListView or trigger a redisplay of the ListView.)
Sir, Is there possible to remove some items from the mid of list? For example, let us assume that there are 50 items in a list, can we remove 21 to 30th items from list?