VB.NET control structures cheatsheet

If statements:

  1. If condition Then
  2.    ' do something
  3. Else
  4.    ' do something else
  5. End If

For loop:

  1. For i As Int16 = start To end
  2.    ' do something
  3. Next

For each:

  1. For Each item As Type In Collection
  2.    ' do something
  3. Next
Posted on 02 Mar 05 by Helen Emerson (last updated on 02 Mar 05).
Filed under .NET