Continue For loop

前端 未结 8 1729
面向向阳花
面向向阳花 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:17

    A lot of years after... I like this one:

    For x = LBound(arr) To UBound(arr): Do
    
        sname = arr(x)  
        If instr(sname, "Configuration item") Then Exit Do 
    
        '// other code to copy past and do various stuff
    
    Loop While False: Next x
    

提交回复
热议问题