Variables declarations: What's the difference? (RESOLVED)
What's the difference between it:
VB Code:
Public Class Form1
Inherits System.Windows.Forms.Form
Dim myVar As String = "Some text" 'Variable declaration here
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox(myVar)
End Sub
End Class
And it:
VB Code:
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim myVar As String = "Some text" 'Variable declaration here
MsgBox(myVar)
End Sub
End Class
?
Thanks.