|
-
Jul 16th, 2006, 09:24 AM
#6
Re: [2005] Skip to Next in 'For Each' loop?
 Originally Posted by penagate
Code can be as elegant as you make it.
Plan the logic flow before you start bashing the keyboard like the thousand proverbial monkeys, and unlike them you might have a chance of creating a work of Shakespeare
Edit: 
Well, let's see:
- Try/Catch is a goto
- Return is a goto
- Exit Sub is a goto
- Continue is a goto
Good luck with all those "If valid", "If Not Complete", "If ..." nestings. If your methods are about 5 lines long on average you can do it, but otherwise these goto's clarify the code rather than obscuring it.
Last edited by David Anton; Jul 16th, 2006 at 09:28 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|