Click here to Skip to main content
15,890,932 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: Don't tell me how to declare a string! Pin
Luc Pattyn20-Aug-07 1:30
sitebuilderLuc Pattyn20-Aug-07 1:30 
GeneralRe: Don't tell me how to declare a string! Pin
Pete O'Hanlon6-Aug-07 1:39
mvePete O'Hanlon6-Aug-07 1:39 
GeneralRe: Don't tell me how to declare a string! Pin
TClarke6-Aug-07 3:03
TClarke6-Aug-07 3:03 
GeneralRe: Don't tell me how to declare a string! Pin
BadKarma6-Aug-07 3:27
BadKarma6-Aug-07 3:27 
GeneralRe: Don't tell me how to declare a string! Pin
Pete O'Hanlon6-Aug-07 3:37
mvePete O'Hanlon6-Aug-07 3:37 
GeneralRe: Don't tell me how to declare a string! Pin
Vasudevan Deepak Kumar6-Aug-07 5:10
Vasudevan Deepak Kumar6-Aug-07 5:10 
GeneralRe: Don't tell me how to declare a string! Pin
Pete O'Hanlon6-Aug-07 8:42
mvePete O'Hanlon6-Aug-07 8:42 
GeneralRe: Don't tell me how to declare a string! Pin
PIEBALDconsult6-Aug-07 16:57
mvePIEBALDconsult6-Aug-07 16:57 
I would do that as:

@"
SELECT field1,
       field2,
       field3
FROM
       mytable
";


It still puts the newlines in the string for when I dump a CommandText to a log.
GeneralRe: Don't tell me how to declare a string! Pin
Jörgen Sigvardsson8-Aug-07 6:32
Jörgen Sigvardsson8-Aug-07 6:32 
GeneralRe: Don't tell me how to declare a string! Pin
Pete O'Hanlon8-Aug-07 21:50
mvePete O'Hanlon8-Aug-07 21:50 
GeneralRe: Don't tell me how to declare a string! Pin
joebeam10-Aug-07 9:00
joebeam10-Aug-07 9:00 
GeneralRe: Don't tell me how to declare a string! Pin
KarstenK6-Aug-07 4:41
mveKarstenK6-Aug-07 4:41 
GeneralRe: Don't tell me how to declare a string! Pin
Vasudevan Deepak Kumar6-Aug-07 5:10
Vasudevan Deepak Kumar6-Aug-07 5:10 
GeneralRe: Don't tell me how to declare a string! Pin
Chris Losinger6-Aug-07 15:31
professionalChris Losinger6-Aug-07 15:31 
GeneralRe: Don't tell me how to declare a string! Pin
LFirth21-Aug-07 5:22
LFirth21-Aug-07 5:22 
GeneralRe: Don't tell me how to declare a string! Pin
KarstenK6-Aug-07 20:25
mveKarstenK6-Aug-07 20:25 
GeneralRe: Don't tell me how to declare a string! Pin
Adam Maras9-Aug-07 5:47
Adam Maras9-Aug-07 5:47 
GeneralHave I gone completely mad? [modified] Pin
Robert Royall31-Jul-07 10:05
Robert Royall31-Jul-07 10:05 
GeneralRe: Have I gone completely mad? Pin
PIEBALDconsult31-Jul-07 10:30
mvePIEBALDconsult31-Jul-07 10:30 
GeneralRe: Have I gone completely mad? Pin
Robert Royall31-Jul-07 13:28
Robert Royall31-Jul-07 13:28 
GeneralRe: Have I gone completely mad? Pin
Andy Brummer31-Jul-07 18:57
sitebuilderAndy Brummer31-Jul-07 18:57 
GeneralRe: Have I gone completely mad? Pin
Haroon Sarwar31-Jul-07 22:12
Haroon Sarwar31-Jul-07 22:12 
GeneralRe: Have I gone completely mad? Pin
BadKarma31-Jul-07 22:29
BadKarma31-Jul-07 22:29 
GeneralRe: Have I gone completely mad? Pin
Brady Kelly31-Jul-07 23:46
Brady Kelly31-Jul-07 23:46 
GeneralRe: Have I gone completely mad? Pin
BadKarma31-Jul-07 23:53
BadKarma31-Jul-07 23:53 

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.