Results 1 to 15 of 15

Thread: [RESOLVED] [2005] Skip to Next in 'For Each' loop?

Threaded View

  1. #6
    Fanatic Member
    Join Date
    Jan 2006
    Posts
    710

    Re: [2005] Skip to Next in 'For Each' loop?

    Quote 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.
    David Anton
    Convert between VB, C#, C++, & Java
    www.tangiblesoftwaresolutions.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width