Answers for "do while in vb.net"

VBA
0

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
Posted by: Guest on September-04-2020
0

while loop in vb.net

'While loops are used to run a section of code WHILE a condition is true

'EXANPLE: Add 1 to x while x is less than 10
Dim x As Integer = 1

Do While y < 5
	MsgBox(y)
	y = y + 1 'OR y += 1
Loop
Posted by: Guest on November-11-2021

Code answers related to "VBA"

Browse Popular Code Answers by Language