VB.NET 1.1 Tutorial - The ByVal Keyword


The ByVal keyword indicates that an argument is passed in such a way that the called procedure or property cannot change the value of a variable underlying the argument in the calling code.

However, if the argument is a reference type, you can modify the members of the object to which it points, even though you cannot replace the object itself.


References

For more information on the Argument Passing ByVal, visit MSDN at microsoft here.

What Next?

Return to the Tutorial Contents.