My post on foreach seems to haver generated a bit of confusion. I was trying to use the calculations as examples not a statement that you should do things that way – there were statements to that effect in the post but they seem to have been missed. … Read the full text.