G
Guest
C#
I am iterating through a collection of rows thus:
foreach(DataRow myRow in dsTable.Table[0].Rows)
{
...........
}
in this loop I have some conditions and when one is met I dont want it to
procede down the code, I want it to go back to the top of the loop and
process the next row in the collection. How do I do this?
In a previous life when programming with Progress you could do this:
myloop:
FOR EACH row:
IF myconditionismet THEN
NEXT myloop
.........
END.
This is the kind of thing I am after.
Thanks
Steve
I am iterating through a collection of rows thus:
foreach(DataRow myRow in dsTable.Table[0].Rows)
{
...........
}
in this loop I have some conditions and when one is met I dont want it to
procede down the code, I want it to go back to the top of the loop and
process the next row in the collection. How do I do this?
In a previous life when programming with Progress you could do this:
myloop:
FOR EACH row:
IF myconditionismet THEN
NEXT myloop
.........
END.
This is the kind of thing I am after.
Thanks
Steve