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

Total Post:341

Points:2389
Posted on    December-22-2015 10:22 PM

 VB.Net VB.Net 
Ratings:


 1 Reply(s)
 202  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:242

Points:1722
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)
        Next
        Console.ReadLine()
    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