The requested page is not available for the requested platform. You are viewing the content for Default platform.

Reverse For Loop

Inverts the incrementing for loop to decrementing, or vice versa.


From the context menus or via shortcuts:

  • when the edit cursor or caret is on the for keyword.


for (int i = 0; i <= 10; i++)
For i = 0 To 10


for (int i = 10; i >= 0; i--)
For i = 10 To 0 Step -1