A
Anoj
Hi All,
As you all know in vb.net we can declare block level
variables. Like :
Dim I As Integer
For I = 1 To 3
Dim N As Long
' N has block scope in VB.NET
N = N + I
Next
Can someone tell me what is the benefit of
doing so ..
Which practice is better ..
1. declaring variables at the top of the function/procedure
2. declaring variables whereever needed
Thanx
Regards,
Anoj Kumar
As you all know in vb.net we can declare block level
variables. Like :
Dim I As Integer
For I = 1 To 3
Dim N As Long
' N has block scope in VB.NET
N = N + I
Next
Can someone tell me what is the benefit of
doing so ..
Which practice is better ..
1. declaring variables at the top of the function/procedure
2. declaring variables whereever needed
Thanx
Regards,
Anoj Kumar