·  VB .NET – Syntax – Conditional Statements – For...Next

 

- Info:

  - This tutorial shows how to use For...Next conditional statements.

 

- Procedure:

  - Create VB .NET Console Application Test.vb

 

    Test.vb

    Module Module1

    

      Sub Main()

    

        For i = 1 To 4

          MsgBox(i)

        Next

    

        For i = 1 To 4 Step 1

          MsgBox(i)

        Next

    

      End Sub

    

    End Module