RE: Removing an item from a list

2001-05-01 Thread King, Jason
David Kalnins writes .. >I was wondering if it was possible to remove an item from a list whilst >one is repeating over it with a foreach statement. For example, I was >hoping that the following code fragment would do this - but instead it >does exactly what I told it to do :) That is it leaves t

Removing an item from a list

2001-05-01 Thread David_Kalnins
Hi all, I was wondering if it was possible to remove an item from a list whilst one is repeating over it with a foreach statement. For example, I was hoping that the following code fragment would do this - but instead it does exactly what I told it to do :) That is it leaves the item there but wi