Click here to Skip to main content
15,918,596 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: Using Else with blank If Pin
Roger Bamforth7-Mar-07 21:55
Roger Bamforth7-Mar-07 21:55 
GeneralRe: Using Else with blank If Pin
Josh Smith8-Mar-07 7:33
Josh Smith8-Mar-07 7:33 
GeneralRe: Using Else with blank If Pin
Hal Angseesing8-Mar-07 22:17
professionalHal Angseesing8-Mar-07 22:17 
GeneralRe: Using Else with blank If Pin
Graham Bradshaw10-Mar-07 2:49
Graham Bradshaw10-Mar-07 2:49 
GeneralRe: Using Else with blank If Pin
Roger Bamforth11-Mar-07 22:59
Roger Bamforth11-Mar-07 22:59 
GeneralRe: Using Else with blank If Pin
D1112-Apr-07 5:39
D1112-Apr-07 5:39 
GeneralRe: Using Else with blank If Pin
Kevin McFarlane10-Mar-07 12:05
Kevin McFarlane10-Mar-07 12:05 
GeneralRe: Using Else with blank If Pin
Marcus J. Smith8-Mar-07 3:22
professionalMarcus J. Smith8-Mar-07 3:22 
I think it is just easier to read when you say say what you want it to equal.
If boolean = True
instead of just saying
If boolean
I just couldnt think of a good example but what I was getting at is really saying something like
If strType = "GOOD" OrElse strType = "COOL" Then 
'Good Record
Else
blnError = True
End If
instead of saying
If strType <> "GOOD" AndAlso strType <> "COOL" Then 
blnError = True
End If



CleaKO

"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy
"Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)

GeneralRe: Using Else with blank If Pin
jhwurmbach8-Mar-07 4:23
jhwurmbach8-Mar-07 4:23 
GeneralRe: Using Else with blank If Pin
John R. Shaw9-Mar-07 10:41
John R. Shaw9-Mar-07 10:41 
GeneralRe: Using Else with blank If Pin
Kevin McFarlane10-Mar-07 12:11
Kevin McFarlane10-Mar-07 12:11 
GeneralRe: Using Else with blank If Pin
Dave Kreskowiak8-Mar-07 5:04
mveDave Kreskowiak8-Mar-07 5:04 
GeneralRe: Using Else with blank If Pin
PIEBALDconsult8-Mar-07 10:16
mvePIEBALDconsult8-Mar-07 10:16 
GeneralRe: Using Else with blank If Pin
John R. Shaw9-Mar-07 10:35
John R. Shaw9-Mar-07 10:35 
GeneralRe: Using Else with blank If Pin
Shog99-Mar-07 12:08
sitebuilderShog99-Mar-07 12:08 
GeneralRe: Using Else with blank If Pin
AncientCodeslinger9-Mar-07 15:14
AncientCodeslinger9-Mar-07 15:14 
GeneralRe: Using Else with blank If Pin
Kevin McFarlane10-Mar-07 12:09
Kevin McFarlane10-Mar-07 12:09 
GeneralRe: Using Else with blank If Pin
peterchen12-Mar-07 5:56
peterchen12-Mar-07 5:56 
GeneralRe: Using Else with blank If Pin
Shog98-Mar-07 7:31
sitebuilderShog98-Mar-07 7:31 
GeneralOn rare occassion Pin
Ennis Ray Lynch, Jr.12-Mar-07 4:20
Ennis Ray Lynch, Jr.12-Mar-07 4:20 
GeneralThe daily WTF! Pin
Magnus L Karlsson7-Mar-07 7:28
Magnus L Karlsson7-Mar-07 7:28 
GeneralNice catch! Pin
webmarco6-Mar-07 21:38
webmarco6-Mar-07 21:38 
GeneralRe: Nice catch! Pin
AnthonyC6-Mar-07 23:21
AnthonyC6-Mar-07 23:21 
GeneralRe: Nice catch! Pin
webmarco6-Mar-07 23:28
webmarco6-Mar-07 23:28 
GeneralRe: Nice catch! Pin
Code_Digger7-Mar-07 0:25
Code_Digger7-Mar-07 0:25 

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.