Search Results For : basic

Visual Basic reverse For Loop

Something quickie post here. Since I am not from a vb background, this took me a little more than 3 mins to figure this out. Thought will be good to post this.

For i = 10 to 0 step -1
STATEMENT
Next

This is the the C# version of the loop.

for(int i=10; i<0; i--){ STATEMENT; }

Thanks to : http://msdn.microsoft.com/en-us/library/5z06z1kb.aspx