Link to home
Start Free TrialLog in
Avatar of lankford
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
ASKER CERTIFIED SOLUTION
Avatar of MikeP090797
MikeP090797

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lankford
lankford

ASKER

Well (Edited by Computer101), I was thinking there was a special command to skip to the next section, but that'll work.