lankford
asked on
Jump to next iteration in a loop
I know you can do this in C...
Say you got a loop like the one below. How do I accomplish the same task without the goto statement?
For Each MyControl In ControlCollection
If TypeOf MyControl Is Whatever Then Goto SkipThisOne
' Provide code here to work with valid MyControl
SkipThisOne:
Next MyControl
There's got to be a way to do this but I can't think of it at the moment.
Lankford
Say you got a loop like the one below. How do I accomplish the same task without the goto statement?
For Each MyControl In ControlCollection
If TypeOf MyControl Is Whatever Then Goto SkipThisOne
' Provide code here to work with valid MyControl
SkipThisOne:
Next MyControl
There's got to be a way to do this but I can't think of it at the moment.
Lankford
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER