do loop code example
Example 1: do whie loop
do{
----
} while(condition);
Example 2: vba do while
' OPTION 1
i =0
Do While i < 3 'Check Condition at the START of the loop
' Do something
i = i + 1
Loop
'OPTION 2
i =0
Do
' Do something
i = i + 1
Loop While i < 3 'Check Condition at the END of the loop
Example 3: do until vb.net
Dim z As Integer = 0
'Do the action until the condition is true
'add 1 to z until z equals 20
Do Until z = 20
MsgBox(z)
z += 1
Loop