help me urgent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sonugun27
    New Member
    • Jul 2007
    • 1

    help me urgent

    in some programming situations we want to take control to the beginning of the loop, bypassing the statements inside the loop, which have not yet been executed. like CONTINUE in C language. what to do in VB

    pls reply fast
  • pureenhanoi
    New Member
    • Mar 2007
    • 175

    #2
    Originally posted by sonugun27
    in some programming situations we want to take control to the beginning of the loop, bypassing the statements inside the loop, which have not yet been executed. like CONTINUE in C language. what to do in VB

    pls reply fast
    place a Label at the end of the loop, once u need using CONTINUE, simply wrote Goto Label
    Code:
    For i = 1 To 1000 
               'ur statements will place here 
               If (contition=True) Then
                       Goto continue
               End If
               'ur statements will place here 
    continue:
    Next

    Comment

    Working...