Variant loop vb.net code example
Example 1: vb for each
Dim lst As New List(Of String) _
From {"abc", "def", "ghi"}
' Iterate through the list.
For Each item As String In lst
Debug.Write(item & " ")
Next
Debug.WriteLine("")
Example 2: for loop in vb.net
For a = 10 To 20 Step 2
Console.WriteLine("value of a: {0}", a)
Next