Continue For loop

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

    A few years late, but here is another alternative.

    For x = LBound(arr) To UBound(arr)
        sname = arr(x)  
        If InStr(sname, "Configuration item") Then  
            'Do nothing here, which automatically go to the next iteration
        Else
            'Code to perform the required action
        End If
    Next x
    

提交回复
热议问题