Continue For loop

前端 未结 8 1737
面向向阳花
面向向阳花 2020-11-27 05:29

I have the following code

For x = LBound(arr) To UBound(arr)

    sname = arr(x)  
    If instr(sname, \"Configuration item\") Then  
        \'**(here i wa         


        
8条回答
  •  忘掉有多难
    2020-11-27 06:32

    You can use a GoTo:

    Do
    
        '... do stuff your loop will be doing
    
        ' skip to the end of the loop if necessary:
        If  Then GoTo ContinueLoop 
    
        '... do other stuff if the condition is not met
    
    ContinueLoop:
    Loop
    

提交回复
热议问题