Click here to Skip to main content

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrasing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralSpurious use of goto... [modified]memberRob Grainger7-Feb-13 1:46 
A true gem...
 
If CurrentContext = "D" Then GoTo c45
 
GetUserDataRecord aForm
 
c45:
 
There were no other ref's to c45, so replaced by...
 
If CurrentContext <> "D" Then GetUserRecord aForm
 

Further down in same procedure:
 
    GoSub ResolveTabOrder
 
    ' Other code here

    Exit Function
 
ResolveTabOrder:
 
    If uControlNbr < 2 Then Return
 
    ' More code here

    GoTo ResolveTabOrder
End Function


modified 7-Feb-13 7:54am.

GeneralRe: Spurious use of goto...memberjoe_j7-Feb-13 23:37 
Now this is what happens if you Google "coding" in the "Fill in the blanks" forum

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web02 | 2.6.130617.1 | Last Updated 19 Jun 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid