Hello guys,
I sometimes have for loops nested in for loops, but once i find my answer id like all of the loops to exit, not just the current one. My current code looks like:
Is there a better approach to do it?
I sometimes have for loops nested in for loops, but once i find my answer id like all of the loops to exit, not just the current one. My current code looks like:
Code:
For Each item1 In fulllist1
For Each item2 In fullList2
If item2.Text = "hit" Then
done = True
Exit For
End If
Next
If done Then Exit For
Next