G
Guest
Hi,
My app populates a list of custom objects from data fetched from a database.
What i want to do now is filter the list and remove items from the list that
don't match the filter criteria.
I was thinking of using foreach to traverse the list and dynamically remove
items that fail the filter however I am having difficulty removing an item
from the list as i don't know its postion in the list.
Can anyone tell me how to do this as i want to avoid creating another list
to hold filtered items.
Thanks
Macca
My app populates a list of custom objects from data fetched from a database.
What i want to do now is filter the list and remove items from the list that
don't match the filter criteria.
I was thinking of using foreach to traverse the list and dynamically remove
items that fail the filter however I am having difficulty removing an item
from the list as i don't know its postion in the list.
Can anyone tell me how to do this as i want to avoid creating another list
to hold filtered items.
Thanks
Macca