• Best of luck to the class of 2024 for their HSC exams. You got this!
    Let us know your thoughts on the HSC exams here
  • YOU can help the next generation of students in the community!
    Share your trial papers and notes on our Notes & Resources page
MedVision ad

help with vb (1 Viewer)

churcho

New Member
Joined
Feb 7, 2004
Messages
3
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
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
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
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top