CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Do loop control in VB

    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 ?


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Do loop control in VB

    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





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured