can somebody explain the logic of this? [modified]
-
I found some meaningless code in my project. do you have any idea about its logic?
protected void Page_Load(object sender, EventArgs e) { string sHafta = string.Empty; try { sHafta = ddlHafta.SelectedValue; } catch (Exception) { sHafta = "0"; } }
note that sHafta is a local variable :) -- modified at 5:27 Tuesday 13th November, 2007 -
I found some meaningless code in my project. do you have any idea about its logic?
protected void Page_Load(object sender, EventArgs e) { string sHafta = string.Empty; try { sHafta = ddlHafta.SelectedValue; } catch (Exception) { sHafta = "0"; } }
note that sHafta is a local variable :) -- modified at 5:27 Tuesday 13th November, 2007Looks like the code is "shaftad" Poor pun sorry.
I still remember having to write your own code in FORTRAN rather than be a cut and paste merchant being pampered by colour coded Intellisense - ahh proper programming - those were the days :)
-
I found some meaningless code in my project. do you have any idea about its logic?
protected void Page_Load(object sender, EventArgs e) { string sHafta = string.Empty; try { sHafta = ddlHafta.SelectedValue; } catch (Exception) { sHafta = "0"; } }
note that sHafta is a local variable :) -- modified at 5:27 Tuesday 13th November, 2007Leftover debugging code, you know, no one ever has to understand a single line of debugging code, as long as you remember to remove it :)
xacc.ide
IronScheme a R5RS-compliant Scheme on the DLR
The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach." -
I found some meaningless code in my project. do you have any idea about its logic?
protected void Page_Load(object sender, EventArgs e) { string sHafta = string.Empty; try { sHafta = ddlHafta.SelectedValue; } catch (Exception) { sHafta = "0"; } }
note that sHafta is a local variable :) -- modified at 5:27 Tuesday 13th November, 2007hi there, i think that maybe you don't need this code in this part, because you're doing nothing , the local variables end in the end of method and I think that this code is just for spending a little more your memory.... exists any posibility that this code has the logic that you wanted to set this variable to any of you controls (like label, textbox etc), but you did not set to anyone of your control. I think that you forgot to set this value to any of your control. respect
spaps
-
I found some meaningless code in my project. do you have any idea about its logic?
protected void Page_Load(object sender, EventArgs e) { string sHafta = string.Empty; try { sHafta = ddlHafta.SelectedValue; } catch (Exception) { sHafta = "0"; } }
note that sHafta is a local variable :) -- modified at 5:27 Tuesday 13th November, 2007 -
Looks like the code is "shaftad" Poor pun sorry.
I still remember having to write your own code in FORTRAN rather than be a cut and paste merchant being pampered by colour coded Intellisense - ahh proper programming - those were the days :)
-
I found some meaningless code in my project. do you have any idea about its logic?
protected void Page_Load(object sender, EventArgs e) { string sHafta = string.Empty; try { sHafta = ddlHafta.SelectedValue; } catch (Exception) { sHafta = "0"; } }
note that sHafta is a local variable :) -- modified at 5:27 Tuesday 13th November, 2007