Use session for pass value [modified]
-
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
-
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
-
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
Krirk wrote:
session("TotalPrice")
But are you sure he is not using it in a different context within the application like a different period or time.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
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
Useless looking code. What was your colleague thinking?
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
-
Useless looking code. What was your colleague thinking?
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
Paul Conrad wrote:
What was your colleague thinking?
"Almost weekend..." :-D
[My Blog]
"Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe -
Paul Conrad wrote:
What was your colleague thinking?
"Almost weekend..." :-D
[My Blog]
"Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfednh wrote:
"Almost weekend..."
Yes, or... "Hmmmm, 4:45 Friday, I'll delete the dead code Monday" ( and gets sidetracked with a Monday morning meeting :-\ )
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
-
Useless looking code. What was your colleague thinking?
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
Paul Conrad wrote:
thinking
Can he? He should have been in an inebriated state right?
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
Paul Conrad wrote:
thinking
Can he? He should have been in an inebriated state right?
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis LevinsonQuite possible...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
-
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
hey would u please send me the source code of peer to peer internet caching.as iam an engg student and iam doing a project on that re.so please send me the source code of it ok.send to my id rameez_313 @yahoo.com
-
hey would u please send me the source code of peer to peer internet caching.as iam an engg student and iam doing a project on that re.so please send me the source code of it ok.send to my id rameez_313 @yahoo.com