Click here to Skip to main content
15,899,754 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: Give me a horror :) Pin
Bevan C Bird15-Mar-08 10:44
Bevan C Bird15-Mar-08 10:44 
GeneralRe: Give me a horror :) Pin
Philip Laureano15-Mar-08 13:15
Philip Laureano15-Mar-08 13:15 
GeneralRe: Give me a horror :) Pin
MarkB77715-Mar-08 14:46
MarkB77715-Mar-08 14:46 
GeneralRe: Give me a horror :) Pin
Tristan Rhodes17-Mar-08 0:06
Tristan Rhodes17-Mar-08 0:06 
GeneralRe: Give me a horror :) Pin
Ri Qen-Sin18-Mar-08 2:09
Ri Qen-Sin18-Mar-08 2:09 
GeneralRe: Give me a horror :) Pin
fat_boy2-Apr-08 6:09
fat_boy2-Apr-08 6:09 
GeneralRe: Give me a horror :) [modified] Pin
CTF662-Apr-08 20:48
CTF662-Apr-08 20:48 
GeneralUse session for pass value [modified] Pin
Krirk12-Mar-08 23:21
Krirk12-Mar-08 23:21 
My colleague wrote code for calculate total price and then save it he use session for sending total price to another Sub.This session use in Cal() and Save() only.


Private Sub Cal()

dim dblTotalPrice as Double
dblTotalPrice= cint(me.txtQty.text) * cdbl(me.txtPricePerUnit.Text)

session("TotalPrice") = dblTotalPrice

End Sub

Private Sub Save()
dim dblTotalPrice as Double
dblTotalPrice = session("TotalPrice")

End Sub

modified on Thursday, March 13, 2008 5:42 AM

GeneralRe: Use session for pass value Pin
leppie13-Mar-08 0:19
leppie13-Mar-08 0:19 
QuestionRe: Use session for pass value Pin
Vasudevan Deepak Kumar13-Mar-08 6:43
Vasudevan Deepak Kumar13-Mar-08 6:43 
GeneralRe: Use session for pass value Pin
Paul Conrad13-Mar-08 11:42
professionalPaul Conrad13-Mar-08 11:42 
GeneralRe: Use session for pass value Pin
DavidNohejl13-Mar-08 11:53
DavidNohejl13-Mar-08 11:53 
GeneralRe: Use session for pass value Pin
Paul Conrad13-Mar-08 11:59
professionalPaul Conrad13-Mar-08 11:59 
GeneralRe: Use session for pass value Pin
Vasudevan Deepak Kumar14-Mar-08 4:30
Vasudevan Deepak Kumar14-Mar-08 4:30 
GeneralRe: Use session for pass value Pin
Paul Conrad14-Mar-08 4:35
professionalPaul Conrad14-Mar-08 4:35 
GeneralRe: Use session for pass value Pin
rameez nakash m.k17-Mar-08 23:49
rameez nakash m.k17-Mar-08 23:49 
GeneralRe: Use session for pass value Pin
Krirk20-Mar-08 0:12
Krirk20-Mar-08 0:12 
GeneralReal coding horror... by me! :) Pin
leonej_dt11-Mar-08 20:23
leonej_dt11-Mar-08 20:23 
GeneralRe: Real coding horror... by me! :) Pin
Paul Conrad12-Mar-08 5:22
professionalPaul Conrad12-Mar-08 5:22 
JokeRe: Real coding horror... by me! :) Pin
Justin Perez12-Mar-08 5:25
Justin Perez12-Mar-08 5:25 
GeneralRe: Real coding horror... by me! :) Pin
leppie12-Mar-08 6:14
leppie12-Mar-08 6:14 
GeneralRe: Real coding horror... by me! :) Pin
Justin Perez13-Mar-08 2:50
Justin Perez13-Mar-08 2:50 
GeneralRe: Real coding horror... by me! :) Pin
sammyamma12-Mar-08 11:06
sammyamma12-Mar-08 11:06 
GeneralRe: Real coding horror... by me! :) Pin
Pete O'Hanlon12-Mar-08 12:21
mvePete O'Hanlon12-Mar-08 12:21 
GeneralRe: Real coding horror... by me! :) Pin
Justin Perez13-Mar-08 2:51
Justin Perez13-Mar-08 2:51 

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.