>Off the top of my head, I don't believe you can do it "out of the box". Foreach internally only has a MoveNext method. However, at least in C# 2.0, you can write your own iterator. Here's a link:
>
>
http://www.dotnetspider.com/kb/Article356.aspx>
>It's in C#, so you'll have to check to see if the same thing exists in VB.NET (i honestly don't know if it does or not)
Ok, thanks for the information