If you installed Service Pack 1 for Visual Studio 2010 and you are a VB, you might have noticed that when writing methods the ByVal keyword is no longer added for method arguments.
For instance, this code is legal:
'Missing explicit ByVal Private Sub aMethod(anArgument As Integer) End Sub
The reason is that a method argument is ByVal by default, unless you specify ByRef. So the keyword can be omitted, but you can also add it explicitly if you prefer.
Alessandro
Print | posted on lunedì 9 maggio 2011 01:38 | Filed Under [ Visual Basic ]
Powered by:
Copyright © alessandro.delsole@nospamvisual-basic.it