Alessandro Del Sole's Blog

/* A programming space about Microsoft® .NET® */
posts - 144, comments - 0, trackbacks - 0

My Links


Your host

This is me! This space is about Microsoft® .NET® and Microsoft® Visual Basic development. Enjoy! :-)

These postings are provided 'AS IS' for entertainment purposes only with absolutely no warranty expressed or implied and confer no rights.

Microsoft MVP

My MVP Profile

I'm a VB!

Watch my interview in Seattle

My new book on VB 2012

Order my book about VB 2012 on Amazon My book "Visual Basic 2012 Unleashed" is available. Click the cover!

My new book on LightSwitch!

Visual Studio LightSwitch Unleashed My book "Visual Studio LightSwitch Unleashed" is available. Click the cover!

Your visits

campusMVP.NET - Tutored online training for Microsoft developers

Follow me on Twitter!

Messenger me!

CyberInstaller Beta Tester

Download CIS 2008!!

CodePlex download Download my open-source projects from CodePlex!

Search the blog

Article Categories


Post Categories

.NET Framework


Help Authoring

Microsoft & MSDN

Setup & Deployment

Visual Basic 2005/2008/2010

Where's ByVal?

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.


Print | posted on lunedì 9 maggio 2011 01:38 | Filed Under [ Visual Basic ]


No comments posted yet.

Post Comment

Please add 7 and 4 and type the answer here:

Powered by:
Powered By Subtext Powered By ASP.NET