while loop vb code example
Example 1: while loop in vb.net
Dim x As Integer = 1
'Do the action while the condition is true
'add 1 to x while x is less than 10
Do While x < 10
MsgBox("X value = " & x)
x += 1
Loop
Example 2: do while not vb.net
Dim y As Integer = 1
'Do the action while the condition is not true
'add 1 to y while y is not equal to 10
Do While Not y = 10
MsgBox("Y value = " & y)
y += 1
Loop