In this
Dim [end] As Point = e.Location
what is the significance of the [] 's?
Printable View
In this
Dim [end] As Point = e.Location
what is the significance of the [] 's?
same as it is in SQL... prevents the variable end from being confused with the keyword End. Personally I think it's a poor choice for a variable name, but hey, what ever works.
-tg
It was just something I came across, and the choice of the name was fitting (it was the end of a line). Thanks!
tg, why would you use it in this scenario?
vb Code:
for each... in [enum].getvalues
'Enum' is a reserved word in VB, so to specify the System.Enum class, you either have to fully qualify it or use [Enum]. The VS IDE will normally do this for you automatically.
(the same is true of System.Delegate, System.Reflection.Assembly, and System.Reflection.Module - if you don't fully qualify the type, you'll need the square brackets).