Click to See Complete Forum and Search --> : Do loop control in VB


August 20th, 1999, 03:44 AM
In a do while loop or DO UNTIL loop in VB, how can the control be passed down to the loop statement ignoring all statesments in between conditionally ?
i.e. what is the equivalent of the 'LOOP' statement in the foxpro Do while-enddo statement in VB ?

Lothar Haensler
August 20th, 1999, 03:48 AM
I don't know exactly what you mean by "...the control be passed down to the loop statement ignoring all statesments in between conditionally ", but you can exit a loop using the Exit Do statement and you can jump to the loop statement using goto:

do while...

if... then goto nextstep

nextstep:
Loop