Click here to Skip to main content
15,890,399 members

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, embarrassing 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.

 
GeneralRe: GoSub Return's Pin
Luc Pattyn4-Feb-10 5:11
sitebuilderLuc Pattyn4-Feb-10 5:11 
GeneralRe: GoSub Return's Pin
Rob Grainger4-Feb-10 8:53
Rob Grainger4-Feb-10 8:53 
GeneralRe: GoSub Return's Pin
Nagy Vilmos4-Feb-10 10:31
professionalNagy Vilmos4-Feb-10 10:31 
GeneralRe: GoSub Return's Pin
David Skelly4-Feb-10 22:42
David Skelly4-Feb-10 22:42 
GeneralRe: GoSub Return's Pin
Tim Carmichael4-Feb-10 8:53
Tim Carmichael4-Feb-10 8:53 
GeneralWhere may I find this person, their immediate family, anscestors and future descendants so I may take revenge upon them all? Pin
Wes Jones3-Feb-10 12:37
Wes Jones3-Feb-10 12:37 
GeneralRe: Where may I find this person, their immediate family, anscestors and future descendants so I may take revenge upon them all? PinPopular
Luc Pattyn3-Feb-10 13:00
sitebuilderLuc Pattyn3-Feb-10 13:00 
GeneralRe: Where may I find this person, their immediate family, anscestors and future descendants so I may take revenge upon them all? PinPopular
Keith Barrow4-Feb-10 0:52
professionalKeith Barrow4-Feb-10 0:52 
Wow, this guy knows nothing, look at all those magic numbers, how are you meant to know what they mean?

Const Number1 As Int32 = 0
Const Number2 As Int32 = 1
Const Number3 As Int32 = 13
Const Number4 As Int32 = 14
Const Number5 As Int32 = 10977
Const Number6 As Int32 = 10978
Const Number7 As Int32 = 10979
Const Number8 As Int32 = 10980
Const Number9 As Int32 = 10981
Const Number10 As Int32 = 10982
Const Number11 As Int32 = 10983
Const Number12 As Int32 = 10984
Const Number13 As Int32 = 10985
Const Number14 As Int32 = 10986
Const Number15 As Int32 = 10987
Const Number16 As Int32 = 10988

If Something() Then
    chkLogLateShiftEnd.Caption = GetCaptionText(Number16, chkLogLateShiftEnd.Caption)
    chkKeepOrigRadioName.Caption = GetCaptionText(Number8, chkKeepOrigRadioName.Caption)
    Frame9.Caption = GetCaptionText(Number15, Frame9.Caption)
    Frame12.Caption = GetCaptionText(Number11, Frame12.Caption)
    frapnl10(Number1).Caption = GetCaptionText(Number7, frapnl10(Number1).Caption)
    Label13.Caption = GetCaptionText(Number12, Label13.Caption)
    Label14.Caption = GetCaptionText(Number14, Label14.Caption)
    Label5.Caption = GetCaptionText(Number13, Label5.Caption)
    lblpnl03(Number4).Caption = GetCaptionText(Number9, lblpnl03(Number4).Caption)
    lblpnl03(Number3).Caption = GetCaptionText(Number10, lblpnl03(Number3).Caption)
    lblpnl10(Number2).Caption = GetCaptionText(Number5, lblpnl10(Number2).Caption)
    lblpnl10(Number1).Caption = GetCaptionText(Number6, lblpnl10(Number1).Caption)
End If


FTFY Smile | :) (Yes, it is a slow day at work)

CCC solved so far: 2 (including a Hard One!)
37!?!! - Randall, Clerks

GeneralRe: Where may I find this person, their immediate family, anscestors and future descendants so I may take revenge upon them all? Pin
Wes Jones5-Feb-10 13:19
Wes Jones5-Feb-10 13:19 
GeneralRe: Where may I find this person, their immediate family, anscestors and future descendants so I may take revenge upon them all? Pin
NavnathKale29-Mar-10 2:46
NavnathKale29-Mar-10 2:46 
GeneralRe: Where may I find this person, their immediate family, anscestors and future descendants so I may take revenge upon them all? Pin
Distind4-Feb-10 4:19
Distind4-Feb-10 4:19 
JokeRe: Where may I find this person, their immediate family, anscestors and future descendants so I may take revenge upon them all? Pin
Jeremy Tierman4-Feb-10 11:38
Jeremy Tierman4-Feb-10 11:38 
GeneralRe: Where may I find this person, their immediate family, anscestors and future descendants so I may take revenge upon them all? Pin
Lutosław7-Feb-10 2:56
Lutosław7-Feb-10 2:56 
GeneralRe: Where may I find this person, their immediate family, anscestors and future descendants so I may take revenge upon them all? Pin
Jörgen Andersson9-Feb-10 10:51
professionalJörgen Andersson9-Feb-10 10:51 
GeneralCBool(IIf(BooleanFunction(), True, False)) PinPopular
Gregory Gadow1-Feb-10 6:59
Gregory Gadow1-Feb-10 6:59 
GeneralRe: CBool(IIf(BooleanFunction(), True, False)) Pin
Wes Jones5-Feb-10 13:40
Wes Jones5-Feb-10 13:40 
GeneralWTF Was This Guy Thinking!!! [modified] Pin
Kevin Marois25-Jan-10 5:25
professionalKevin Marois25-Jan-10 5:25 
GeneralRe: WTF Was This Guy Thinking!!! Pin
thrakazog25-Jan-10 6:16
thrakazog25-Jan-10 6:16 
GeneralRe: WTF Was This Guy Thinking!!! Pin
GibbleCH28-Jan-10 11:56
GibbleCH28-Jan-10 11:56 
GeneralRe: WTF Was This Guy Thinking!!! Pin
Andrew Rissing25-Jan-10 9:10
Andrew Rissing25-Jan-10 9:10 
GeneralRe: WTF Was This Guy Thinking!!! Pin
Andrew Rissing25-Jan-10 9:14
Andrew Rissing25-Jan-10 9:14 
GeneralRe: WTF Was This Guy Thinking!!! Pin
sashoalm3-Feb-10 5:50
sashoalm3-Feb-10 5:50 
GeneralRe: WTF Was This Guy Thinking!!! Pin
Andrew Rissing3-Feb-10 7:48
Andrew Rissing3-Feb-10 7:48 
GeneralRe: WTF Was This Guy Thinking!!! Pin
Kevin Marois25-Jan-10 9:24
professionalKevin Marois25-Jan-10 9:24 
GeneralRe: WTF Was This Guy Thinking!!! Pin
ddecoy2-Feb-10 4:22
ddecoy2-Feb-10 4:22 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.