G
Guest
Dear MVP,
A small question to you all
Lets say I have an application which gets the value from a drop down list,
e.g.
GetProductInfo1(ddl.selectedItem.value)
GetProductInfo2(ddl.selectedItem.value)
GetProductInfo3(ddl.selectedItem.value)
GetProductInfo4(ddl.selectedItem.value)
GetProductInfo5(ddl.selectedItem.value)
If you notice, I’m repeating ddl.selectedItem.value 5 times, would it be
better if I just put it into a variable e.g.
Dim int as integer
Int = ddl.selectedItem.value
And from there I just use the variable when ever I need it, rather then
having it call this stmt ddl.selectedItem.value. would it improve performance?
Thanks for taking the time to read this post.
A small question to you all
Lets say I have an application which gets the value from a drop down list,
e.g.
GetProductInfo1(ddl.selectedItem.value)
GetProductInfo2(ddl.selectedItem.value)
GetProductInfo3(ddl.selectedItem.value)
GetProductInfo4(ddl.selectedItem.value)
GetProductInfo5(ddl.selectedItem.value)
If you notice, I’m repeating ddl.selectedItem.value 5 times, would it be
better if I just put it into a variable e.g.
Dim int as integer
Int = ddl.selectedItem.value
And from there I just use the variable when ever I need it, rather then
having it call this stmt ddl.selectedItem.value. would it improve performance?
Thanks for taking the time to read this post.