This the Basic code of Do Loop Until in Vb6
Dim Adrian As Integer 'holds the Value of 1 to 10
Adrian = 1'set the value to 1
Do
Print Adrian ' print the value
Adrian = Adrian + 1 ' increment by 1 from original value
Loop Until Adrian = 10 'end after Adrian=10
End Sub
Happy Coding
Private Sub Command1_Click()
Dim Adrian As Integer 'holds the Value of 1 to 10
Adrian = 1'set the value to 1
Do
Print Adrian ' print the value
Adrian = Adrian + 1 ' increment by 1 from original value
Loop Until Adrian = 10 'end after Adrian=10
'this will print the numbers 1-9
End Sub
Happy Coding
Leave a comment