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

 

- Info:

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

 

- Procedure:

  - Create VB Application Test.vb

 

    Test.vb

    Sub Main()

    

      For i = 1 To 4

        MsgBox (i)

      Next

    

      For i = 1 To 4 Step 1

        MsgBox (i)

      Next

    

    End Sub