in reply to Re^3: Changing foreach loop for a while loopin thread Changing foreach loop for a while loop