Home > DeveloperSection > Forums > How to use For...Next Loop in vb.net
Ankit Singh

Total Post:341

Posted on    December-22-2015 10:22 PM

 VB.Net VB.Net 

 1 Reply(s)
 225  View(s)
Rate this:
I want to use  For...Next Loop in vb.net how to do this please give me solution.

aditya kumar Patel

Total Post:250

Posted on    December-22-2015 10:27 PM

It repeats a group of statements a specified number of times and a loop index counts the number of loop iterations as the loop executes.

Module Module1
    Sub Main()
        Dim a As Integer
        For a = 50 To 80
            Console.WriteLine("value of a: {0}", a)
    End Sub
End Module

Modified On Dec-22-2015 10:27:50 PM

Don't want to miss updates? Please click the below button!

Follow MindStick