C churcho New Member Joined Feb 7, 2004 Messages 3 Jun 15, 2004 #1 Hey i was wondering how do u do a REPEAT-UNTIL loop in VB??, i have forgotten
jason120au Member Joined Nov 26, 2003 Messages 42 Gender Male HSC 2004 Jun 15, 2004 #2 Use a while statement, that is the only way you can do it I think Don't you have MSDN? While test <= 10 test = ten Wend
Use a while statement, that is the only way you can do it I think Don't you have MSDN? While test <= 10 test = ten Wend
sunny meh. Joined Jul 7, 2002 Messages 5,350 Gender Male HSC 2002 Jun 15, 2004 #3 Repeat/Until is just the notation for a POST test loop (jason your loop is pre test loop) in pseudocode. In VB, you would do something like this: Code: Private Sub Form_Load() Me.Show Dim x As Integer Do x = x + 1 Form1.Print x Loop Until (x = 10) End Sub
Repeat/Until is just the notation for a POST test loop (jason your loop is pre test loop) in pseudocode. In VB, you would do something like this: Code: Private Sub Form_Load() Me.Show Dim x As Integer Do x = x + 1 Form1.Print x Loop Until (x = 10) End Sub